accounts/abi: include access-list in gas estimation #31394 (#1417)

Simple bugfix to include the access-list in the gas-estimation step of
the ABI bindings code.

Co-authored-by: protolambda <proto@protolambda.com>
This commit is contained in:
Daniel Liu 2025-09-08 15:33:31 +08:00 committed by GitHub
parent 81f84b79ce
commit 8e8a04d9ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -382,13 +382,14 @@ func (c *BoundContract) estimateGasLimit(opts *TransactOpts, contract *common.Ad
}
}
msg := ethereum.CallMsg{
From: opts.From,
To: contract,
GasPrice: gasPrice,
GasTipCap: gasTipCap,
GasFeeCap: gasFeeCap,
Value: value,
Data: input,
From: opts.From,
To: contract,
GasPrice: gasPrice,
GasTipCap: gasTipCap,
GasFeeCap: gasFeeCap,
Value: value,
Data: input,
AccessList: opts.AccessList,
}
return c.transactor.EstimateGas(ensureContext(opts.Context), msg)
}