Skip to content

Commit f067656

Browse files
committed
graphql: estimateGas nobasefee
Signed-off-by: jsvisa <[email protected]>
1 parent eeaaeb2 commit f067656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql/graphql.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ func (b *Block) Call(ctx context.Context, args struct {
11301130
func (b *Block) EstimateGas(ctx context.Context, args struct {
11311131
Data ethapi.TransactionArgs
11321132
}) (hexutil.Uint64, error) {
1133-
return ethapi.DoEstimateGas(ctx, b.r.backend, args.Data, *b.numberOrHash, b.r.backend.RPCGasCap())
1133+
return ethapi.DoEstimateGas(ctx, b.r.backend, args.Data, *b.numberOrHash, b.r.backend.RPCGasCap(), true)
11341134
}
11351135

11361136
type Pending struct {
@@ -1194,7 +1194,7 @@ func (p *Pending) EstimateGas(ctx context.Context, args struct {
11941194
Data ethapi.TransactionArgs
11951195
}) (hexutil.Uint64, error) {
11961196
latestBlockNr := rpc.BlockNumberOrHashWithNumber(rpc.LatestBlockNumber)
1197-
return ethapi.DoEstimateGas(ctx, p.r.backend, args.Data, latestBlockNr, p.r.backend.RPCGasCap())
1197+
return ethapi.DoEstimateGas(ctx, p.r.backend, args.Data, latestBlockNr, p.r.backend.RPCGasCap(), true)
11981198
}
11991199

12001200
// Resolver is the top-level object in the GraphQL hierarchy.

0 commit comments

Comments
 (0)