Skip to content

Commit

Permalink
accounts/abi/bin/backends: return basefee in suggestGasPrice's (ether…
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Oct 18, 2024
1 parent efb59fb commit c87206d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ func (b *SimulatedBackend) PendingNonceAt(ctx context.Context, account common.Ad
}

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

// SuggestGasTipCap implements ContractTransactor.SuggestGasTipCap. Since the simulated
Expand Down

0 comments on commit c87206d

Please sign in to comment.