From 974fef10497e6c68d99a448c8ed90066467dca09 Mon Sep 17 00:00:00 2001 From: Francisco de Borja Aranda Castillejo Date: Tue, 20 Aug 2024 22:34:01 +0200 Subject: [PATCH] fixes derived from code review --- cmd/zetae2e/local/precompiles.go | 2 +- e2e/e2etests/test_precompiles_prototype.go | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/zetae2e/local/precompiles.go b/cmd/zetae2e/local/precompiles.go index bf1fe25257..55372431e6 100644 --- a/cmd/zetae2e/local/precompiles.go +++ b/cmd/zetae2e/local/precompiles.go @@ -11,7 +11,7 @@ import ( "github.com/zeta-chain/zetacore/e2e/runner" ) -// erc20TestRoutine runs erc20 related e2e tests +// statefulPrecompilesTestRoutine runs steateful precompiles related e2e tests func statefulPrecompilesTestRoutine( conf config.Config, deployerRunner *runner.E2ERunner, diff --git a/e2e/e2etests/test_precompiles_prototype.go b/e2e/e2etests/test_precompiles_prototype.go index d881d434a7..a78a20385f 100644 --- a/e2e/e2etests/test_precompiles_prototype.go +++ b/e2e/e2etests/test_precompiles_prototype.go @@ -27,7 +27,10 @@ func TestPrecompilesRegular(r *runner.E2ERunner, args []string) { "Failed to validate Bech32ToHexAddr result", ) - balance, err := iPrototype.GetGasStabilityPoolBalance(nil, int64(1337)) + chainID, err := r.EVMClient.ChainID(r.Ctx) + require.NoError(r, err, "Error retrieving ChainID") + + balance, err := iPrototype.GetGasStabilityPoolBalance(nil, chainID.Int64()) require.NoError(r, err, "Error calling GetGasStabilityPoolBalance") require.NotNil(r, balance, "GetGasStabilityPoolBalance returned balance is nil") }