Skip to content

Commit

Permalink
Merge pull request #92 from G7DAO/fix/safe-nonce-flag-2
Browse files Browse the repository at this point in the history
Fix: safe nonce overrider fixed properly
  • Loading branch information
karacurt authored Oct 10, 2024
2 parents fa016e6 + d2446b4 commit 06cdbba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
4 changes: 1 addition & 3 deletions evm/generators.go
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ func CreateSafeProposal(client *ethclient.Client, key *keystore.Key, safeAddress
}
nonce := safeNonce
if safeNonce == big.NewInt(0) {
if safeNonce == nil {
// Fetch the current nonce from the Safe contract
fetchedNonce, err := safeInstance.Nonce(&bind.CallOpts{})
if err != nil {
Expand Down Expand Up @@ -1377,7 +1377,6 @@ func {{.DeployHandler.HandlerName}}() *cobra.Command {
if safeNonceRaw == "" {
fmt.Println("--safe-nonce not specified, fetching nonce from Safe contract")
safeNonce = big.NewInt(0)
} else {
safeNonce = new(big.Int)
_, ok := safeNonce.SetString(safeNonceRaw, 0)
Expand Down Expand Up @@ -1705,7 +1704,6 @@ func {{.HandlerName}}() *cobra.Command {
if safeNonceRaw == "" {
fmt.Println("--safe-nonce not specified, fetching nonce from Safe contract")
safeNonce = big.NewInt(0)
} else {
safeNonce = new(big.Int)
_, ok := safeNonce.SetString(safeNonceRaw, 0)
Expand Down
13 changes: 2 additions & 11 deletions examples/ownable-erc-721/OwnableERC721.go

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

2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package version

var SeerVersion string = "0.3.4"
var SeerVersion string = "0.3.5"

0 comments on commit 06cdbba

Please sign in to comment.