mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
ethclient: add EstimateGasAtBlock{,Hash} to the GasEstimator interface
Addition missed by c4f0450710.
This commit is contained in:
parent
b98b255449
commit
c3ff17b2c7
1 changed files with 2 additions and 0 deletions
|
|
@ -278,6 +278,8 @@ type PendingContractCaller interface {
|
|||
// it should provide a basis for setting a reasonable default.
|
||||
type GasEstimator interface {
|
||||
EstimateGas(ctx context.Context, call CallMsg) (uint64, error)
|
||||
EstimateGasAtBlock(ctx context.Context, call CallMsg, blockNumber *big.Int) (uint64, error)
|
||||
EstimateGasAtBlockHash(ctx context.Context, call CallMsg, blockHash common.Hash) (uint64, error)
|
||||
}
|
||||
|
||||
// A PendingStateEventer provides access to real time notifications about changes to the
|
||||
|
|
|
|||
Loading…
Reference in a new issue