Skip to content

Commit

Permalink
Fix: big int base
Browse files Browse the repository at this point in the history
  • Loading branch information
karacurt committed Oct 8, 2024
1 parent e142737 commit 073581c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions evm/generators.go
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ func {{.DeployHandler.HandlerName}}() *cobra.Command {
safeNonce = big.NewInt(0)
} else {
safeNonce = new(big.Int)
_, ok := safeNonce.SetString(safeNonceRaw, 10)
_, ok := safeNonce.SetString(safeNonceRaw, 0)
if !ok {
return fmt.Errorf("--safe-nonce is not a valid big integer")
}
Expand Down Expand Up @@ -1708,7 +1708,7 @@ func {{.HandlerName}}() *cobra.Command {
safeNonce = big.NewInt(0)
} else {
safeNonce = new(big.Int)
_, ok := safeNonce.SetString(safeNonceRaw, 10)
_, ok := safeNonce.SetString(safeNonceRaw, 0)
if !ok {
return fmt.Errorf("--safe-nonce is not a valid big integer")
}
Expand Down
18 changes: 9 additions & 9 deletions examples/ownable-erc-721/OwnableERC721.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 073581c

Please sign in to comment.