mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
core: fix unconvert lint issues in eip8037_test.go
This commit is contained in:
parent
ebf459f8f0
commit
3445440a69
1 changed files with 3 additions and 3 deletions
|
|
@ -281,7 +281,7 @@ func TestValidationStateGasAvailable(t *testing.T) {
|
||||||
// tx.gas may exceed MaxTxGas: regular is capped at MaxTxGas while the state
|
// tx.gas may exceed MaxTxGas: regular is capped at MaxTxGas while the state
|
||||||
// dimension reserves the full tx.gas (the excess lands in the reservoir).
|
// dimension reserves the full tx.gas (the excess lands in the reservoir).
|
||||||
func TestValidationStateGasOverflowAllowed(t *testing.T) {
|
func TestValidationStateGasOverflowAllowed(t *testing.T) {
|
||||||
gas := uint64(params.MaxTxGas) + 5_000_000
|
gas := params.MaxTxGas + 5_000_000
|
||||||
gp := NewGasPool(40_000_000)
|
gp := NewGasPool(40_000_000)
|
||||||
if err := gp.CheckGasAmsterdam(min(gas, params.MaxTxGas), gas); err != nil {
|
if err := gp.CheckGasAmsterdam(min(gas, params.MaxTxGas), gas); err != nil {
|
||||||
t.Fatalf("overflow tx rejected at pool: %v", err)
|
t.Fatalf("overflow tx rejected at pool: %v", err)
|
||||||
|
|
@ -548,7 +548,7 @@ func TestAuthClearRefillBase(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if want := uint64(newAccountState); gp.cumulativeState != want {
|
if want := newAccountState; gp.cumulativeState != want {
|
||||||
t.Fatalf("state gas = %d, want %d (indicator refilled)", gp.cumulativeState, want)
|
t.Fatalf("state gas = %d, want %d (indicator refilled)", gp.cumulativeState, want)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -564,7 +564,7 @@ func TestAuthClearSameTxDoubleRefill(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
_ = authority
|
_ = authority
|
||||||
if want := uint64(newAccountState); gp.cumulativeState != want {
|
if want := newAccountState; gp.cumulativeState != want {
|
||||||
t.Fatalf("state gas = %d, want %d (net-zero delegation)", gp.cumulativeState, want)
|
t.Fatalf("state gas = %d, want %d (net-zero delegation)", gp.cumulativeState, want)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue