From c3ff17b2c70bef84ce712e3ac36c219008425a7f Mon Sep 17 00:00:00 2001 From: Arnaud Lacombe Date: Wed, 10 Dec 2025 10:31:30 -0800 Subject: [PATCH] ethclient: add EstimateGasAtBlock{,Hash} to the GasEstimator interface Addition missed by c4f045071031ed19534915a7ff5792354669b3db. --- interfaces.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interfaces.go b/interfaces.go index 21d42c6d34..cfa51ca2e6 100644 --- a/interfaces.go +++ b/interfaces.go @@ -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