From 825b514c8bd75f2fac613e36357828a6ecb874bb Mon Sep 17 00:00:00 2001 From: Fridrik Asmundsson Date: Wed, 29 Nov 2023 15:17:05 +0000 Subject: [PATCH] Update one test to pass optional block param to EthEstimateGas --- itests/eth_transactions_test.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/itests/eth_transactions_test.go b/itests/eth_transactions_test.go index 616245a4c..1a04eb9c1 100644 --- a/itests/eth_transactions_test.go +++ b/itests/eth_transactions_test.go @@ -43,10 +43,14 @@ func TestValueTransferValidSignature(t *testing.T) { kit.SendFunds(ctx, t, client, deployer, types.FromFil(1000)) - gasParams, err := json.Marshal(ethtypes.EthEstimateGasParams{Tx: ethtypes.EthCall{ - From: ðAddr, - Data: contract, - }}) + blkParam := ethtypes.NewEthBlockNumberOrHashFromPredefined("latest") + gasParams, err := json.Marshal(ethtypes.EthEstimateGasParams{ + Tx: ethtypes.EthCall{ + From: ðAddr, + Data: contract, + }, + BlkParam: &blkParam, + }) require.NoError(t, err) gaslimit, err := client.EthEstimateGas(ctx, gasParams)