Skip to content

Commit

Permalink
Ensure that TestTransferERC20 uses head block
Browse files Browse the repository at this point in the history
Previously it was getting block 1, but somethimes the block had not
yet been mined.
  • Loading branch information
piersy committed Feb 1, 2024
1 parent 7ae8a60 commit f65c09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e_test/e2e_transfer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func TestTransferERC20(t *testing.T) {
gateWayFeeRecipient := devAccounts[2]

// Get datum to set GasPrice/MaxFeePerGas/MaxPriorityFeePerGas to sensible values
header, err := network[0].WsClient.HeaderByNumber(ctx, common.Big1)
header, err := network[0].WsClient.HeaderByNumber(ctx, nil)
require.NoError(t, err)
datum := header.BaseFee
stableTokenAddress := env.MustProxyAddressFor("StableToken")
Expand Down

0 comments on commit f65c09c

Please sign in to comment.