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 Sep 2, 2024
1 parent 1054628 commit 4f51ba2
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 4f51ba2

Please sign in to comment.