Skip to content

Commit 6ed7190

Browse files
committed
disable space and nonce checks
TODO: review
1 parent e632a07 commit 6ed7190

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/v3/payload.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -384,15 +384,15 @@ func Calls(address common.Address, chainID *big.Int, calls_ []Call, space, nonce
384384
if space == nil {
385385
space = new(big.Int)
386386
}
387-
if space.Sign() < 0 || space.Cmp(new(big.Int).Lsh(common.Big1, 160)) >= 0 {
388-
panic(fmt.Errorf("space %v is out of bounds [0, 2^160)", space))
389-
}
387+
// if space.Sign() < 0 || space.Cmp(new(big.Int).Lsh(common.Big1, 160)) >= 0 {
388+
// panic(fmt.Errorf("space %v is out of bounds [0, 2^160)", space))
389+
// }
390390
if nonce == nil {
391391
nonce = new(big.Int)
392392
}
393-
if nonce.Sign() < 0 || nonce.Cmp(new(big.Int).Lsh(common.Big1, 56)) >= 0 {
394-
panic(fmt.Errorf("nonce %v is out of bounds [0, 2^56)", nonce))
395-
}
393+
// if nonce.Sign() < 0 || nonce.Cmp(new(big.Int).Lsh(common.Big1, 56)) >= 0 {
394+
// panic(fmt.Errorf("nonce %v is out of bounds [0, 2^56)", nonce))
395+
// }
396396
if parentWallets == nil {
397397
parentWallets = append(parentWallets, nil)
398398
}

0 commit comments

Comments
 (0)