Update one test to pass optional block param to EthEstimateGas
This commit is contained in:
parent
0db343a164
commit
825b514c8b
@ -43,10 +43,14 @@ func TestValueTransferValidSignature(t *testing.T) {
|
|||||||
|
|
||||||
kit.SendFunds(ctx, t, client, deployer, types.FromFil(1000))
|
kit.SendFunds(ctx, t, client, deployer, types.FromFil(1000))
|
||||||
|
|
||||||
gasParams, err := json.Marshal(ethtypes.EthEstimateGasParams{Tx: ethtypes.EthCall{
|
blkParam := ethtypes.NewEthBlockNumberOrHashFromPredefined("latest")
|
||||||
From: ðAddr,
|
gasParams, err := json.Marshal(ethtypes.EthEstimateGasParams{
|
||||||
Data: contract,
|
Tx: ethtypes.EthCall{
|
||||||
}})
|
From: ðAddr,
|
||||||
|
Data: contract,
|
||||||
|
},
|
||||||
|
BlkParam: &blkParam,
|
||||||
|
})
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
gaslimit, err := client.EthEstimateGas(ctx, gasParams)
|
gaslimit, err := client.EthEstimateGas(ctx, gasParams)
|
||||||
|
Loading…
Reference in New Issue
Block a user