Skip to content

Commit

Permalink
fix: In memory.New, add nolint for uint32 overflow (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Thompson <[email protected]>
  • Loading branch information
jefft0 authored Oct 28, 2024
1 parent 8bedf6b commit cb86e92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keyring/memory/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func New(mnemonic string, numAccounts uint64) *Keyring {
seed := bip39.NewSeed(mnemonic, "")

for i := uint64(0); i < numAccounts; i++ {
//nolint:gosec // i ranges up to numAccounts which won't overflow uint32
key := generateKeyFromSeed(seed, uint32(i))
address := key.PubKey().Address()

Expand Down

0 comments on commit cb86e92

Please sign in to comment.