Skip to content

Commit

Permalink
Fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Jul 2, 2024
1 parent ebf2da1 commit ef3a912
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions accounts/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/ethereum/go-ethereum/crypto"
"github.com/pborman/uuid"
"github.com/google/uuid"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -66,7 +66,11 @@ func CreateGenerateKeyFileCommand() *cobra.Command {
}

// Create the keyfile object with a random UUID.
id := uuid.NewRandom()
id, idErr := uuid.NewRandom()
if idErr != nil {
fmt.Printf("Error generating UUID: %v", idErr)
return idErr
}
key := &keystore.Key{
Id: id,
Address: crypto.PubkeyToAddress(privateKey.PublicKey),
Expand Down

0 comments on commit ef3a912

Please sign in to comment.