Skip to content

Commit

Permalink
fixes derived from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
fbac committed Aug 20, 2024
1 parent f49ac43 commit 974fef1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/zetae2e/local/precompiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion e2e/e2etests/test_precompiles_prototype.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 974fef1

Please sign in to comment.