From ffc9b1945e2312c6d1e26b12d4ea9fdd7b209e54 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Thu, 21 Nov 2024 17:24:42 -0500 Subject: [PATCH] print error for pair exists revert --- e2e/e2etests/test_crosschain_swap.go | 2 +- e2e/e2etests/test_v2_deposit_and_call_swap.go | 2 +- e2e/e2etests/test_zrc20_swap.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/e2etests/test_crosschain_swap.go b/e2e/e2etests/test_crosschain_swap.go index 813f2d76ed..b8ec437972 100644 --- a/e2e/e2etests/test_crosschain_swap.go +++ b/e2e/e2etests/test_crosschain_swap.go @@ -25,7 +25,7 @@ func TestCrosschainSwap(r *runner.E2ERunner, _ []string) { // if the tx fails due to already initialized, it will be ignored _, err := r.UniswapV2Factory.CreatePair(r.ZEVMAuth, r.ERC20ZRC20Addr, r.BTCZRC20Addr) if err != nil { - r.Logger.Print("ℹ️ create pair error") + r.Logger.Print("ℹ️ create pair error %s", err.Error()) } txERC20ZRC20Approve, err := r.ERC20ZRC20.Approve(r.ZEVMAuth, r.UniswapV2RouterAddr, big.NewInt(1e18)) diff --git a/e2e/e2etests/test_v2_deposit_and_call_swap.go b/e2e/e2etests/test_v2_deposit_and_call_swap.go index f1c84fb561..fb0aafed4b 100644 --- a/e2e/e2etests/test_v2_deposit_and_call_swap.go +++ b/e2e/e2etests/test_v2_deposit_and_call_swap.go @@ -21,7 +21,7 @@ func TestV2DepositAndCallSwap(r *runner.E2ERunner, _ []string) { // create tokens pair (erc20 and eth) tx, err := r.UniswapV2Factory.CreatePair(r.ZEVMAuth, r.ERC20ZRC20Addr, r.ETHZRC20Addr) if err != nil { - r.Logger.Print("ℹ️ create pair error", err.Error()) + r.Logger.Print("ℹ️ create pair error %s", err.Error()) } else { utils.MustWaitForTxReceipt(r.Ctx, r.ZEVMClient, tx, r.Logger, r.ReceiptTimeout) } diff --git a/e2e/e2etests/test_zrc20_swap.go b/e2e/e2etests/test_zrc20_swap.go index 72819aabf8..dcf1a312c2 100644 --- a/e2e/e2etests/test_zrc20_swap.go +++ b/e2e/e2etests/test_zrc20_swap.go @@ -19,7 +19,7 @@ func TestZRC20Swap(r *runner.E2ERunner, _ []string) { // if the tx fails due to already initialized, it will be ignored tx, err := r.UniswapV2Factory.CreatePair(r.ZEVMAuth, r.ERC20ZRC20Addr, r.ETHZRC20Addr) if err != nil { - r.Logger.Print("ℹ️ create pair error") + r.Logger.Print("ℹ️ create pair error %s", err.Error()) } else { utils.MustWaitForTxReceipt(r.Ctx, r.ZEVMClient, tx, r.Logger, r.ReceiptTimeout) }