mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +00:00
accounts/abi/bin/backends: return basefee in suggestGasPrice (#23838)
Co-authored-by: mrx <mrx@mrx.com>
This commit is contained in:
parent
7fb05b7c16
commit
65c3ad5cba
1 changed files with 6 additions and 2 deletions
|
|
@ -883,8 +883,12 @@ func TestSuggestGasPrice(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("could not get gas price: %v", err)
|
t.Errorf("could not get gas price: %v", err)
|
||||||
}
|
}
|
||||||
if gasPrice.Uint64() != uint64(1) {
|
baseFee := sim.pendingBlock.Header().BaseFee
|
||||||
t.Errorf("gas price was not expected value of 1. actual: %v", gasPrice.Uint64())
|
if baseFee == nil {
|
||||||
|
baseFee = big.NewInt(1)
|
||||||
|
}
|
||||||
|
if gasPrice.Uint64() != baseFee.Uint64() {
|
||||||
|
t.Errorf("gas price was not expected value of %v. actual: %v", sim.pendingBlock.Header().BaseFee.Uint64(), gasPrice.Uint64())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue