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))
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user