Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit 9b403d6

Browse files
authored
Bump balance override to maxUint96 (#304)
1 parent 2d8edbd commit 9b403d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/entrypoint/utils/tracing.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package utils
22

33
import (
4-
"math"
54
"math/big"
65

76
"github.com/ethereum/go-ethereum/common"
@@ -29,8 +28,10 @@ var (
2928
// A dummy private key used to build *bind.TransactOpts for simulation.
3029
DummyPk, _ = crypto.GenerateKey()
3130

31+
maxUint96, _ = big.NewInt(0).SetString("79228162514264337593543950335", 10)
32+
3233
// A default state override to ensure the zero address always has sufficient funds.
3334
DefaultStateOverrides = map[string]TraceStateOverrides{
34-
common.HexToAddress("0x").Hex(): {Balance: hexutil.Big(*big.NewInt(0).SetUint64(math.MaxUint64))},
35+
common.HexToAddress("0x").Hex(): {Balance: hexutil.Big(*maxUint96)},
3536
}
3637
)

0 commit comments

Comments
 (0)