Skip to content

Commit a25e7ea

Browse files
committed
accounts/abi/bin/backends: return basefee in suggestGasPrice's (ethereum#23838)
1 parent 98d056d commit a25e7ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

accounts/abi/bind/backends/simulated.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ func (b *SimulatedBackend) PendingNonceAt(ctx context.Context, account common.Ad
313313
}
314314

315315
// SuggestGasPrice implements ContractTransactor.SuggestGasPrice. Since the simulated
316-
// chain doens't have miners, we just return a gas price of 1 for any call.
316+
// chain doesn't have miners, we just return a gas price of 1 for any call.
317317
func (b *SimulatedBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error) {
318-
return big.NewInt(1), nil
318+
return b.pendingBlock.Header().BaseFee, nil
319319
}
320320

321321
// SuggestGasTipCap implements ContractTransactor.SuggestGasTipCap. Since the simulated

0 commit comments

Comments
 (0)