diff --git a/e2e/e2etests/test_eth_deposit_call.go b/e2e/e2etests/test_eth_deposit_call.go index 9484888cf3..9fbc905aa9 100644 --- a/e2e/e2etests/test_eth_deposit_call.go +++ b/e2e/e2etests/test_eth_deposit_call.go @@ -87,11 +87,5 @@ func TestEtherDepositAndCall(r *runner.E2ERunner, args []string) { r.Logger.Info("Cross-chain call to reverter reverted") - // Check the error carries the revert executed. - // tolerate the error in both the ErrorMessage field and the StatusMessage field - if cctx.CctxStatus.ErrorMessage != "" { - require.Contains(r, cctx.CctxStatus.ErrorMessage, "revert executed") - } else { - require.Contains(r, cctx.CctxStatus.StatusMessage, utils.ErrHashRevertFoo) - } + require.Contains(r, cctx.CctxStatus.ErrorMessage, utils.ErrHashRevertFoo) } diff --git a/e2e/e2etests/test_solana_deposit_refund.go b/e2e/e2etests/test_solana_deposit_refund.go index c8724e72f8..094e87a3e3 100644 --- a/e2e/e2etests/test_solana_deposit_refund.go +++ b/e2e/e2etests/test_solana_deposit_refund.go @@ -31,11 +31,5 @@ func TestSolanaDepositAndCallRevert(r *runner.E2ERunner, args []string) { r.Logger.CCTX(*cctx, "solana_deposit_and_refund") utils.RequireCCTXStatus(r, cctx, crosschaintypes.CctxStatus_Reverted) - // Check the error carries the revert executed. - // tolerate the error in both the ErrorMessage field and the StatusMessage field - if cctx.CctxStatus.ErrorMessage != "" { - require.Contains(r, cctx.CctxStatus.ErrorMessage, "revert executed") - } else { - require.Contains(r, cctx.CctxStatus.StatusMessage, utils.ErrHashRevertFoo) - } + require.Contains(r, cctx.CctxStatus.ErrorMessage, utils.ErrHashRevertFoo) } diff --git a/e2e/e2etests/test_ton_deposit_refund.go b/e2e/e2etests/test_ton_deposit_refund.go index 3259e1d1d6..5c65cca4a9 100644 --- a/e2e/e2etests/test_ton_deposit_refund.go +++ b/e2e/e2etests/test_ton_deposit_refund.go @@ -39,12 +39,5 @@ func TestTONDepositAndCallRefund(r *runner.E2ERunner, args []string) { require.NoError(r, err) r.Logger.CCTX(*cctx, "ton_deposit_and_refund") - // Check the error carries the revert executed. - // tolerate the error in both the ErrorMessage field and the StatusMessage field - if cctx.CctxStatus.ErrorMessage != "" { - require.Contains(r, cctx.CctxStatus.ErrorMessage, "revert executed") - return - } - - require.Contains(r, cctx.CctxStatus.StatusMessage, utils.ErrHashRevertFoo) + require.Contains(r, cctx.CctxStatus.ErrorMessage, utils.ErrHashRevertFoo) }