Skip to content

Commit cb86e92

Browse files
authored
fix: In memory.New, add nolint for uint32 overflow (#61)
Signed-off-by: Jeff Thompson <[email protected]>
1 parent 8bedf6b commit cb86e92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: keyring/memory/memory.go

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func New(mnemonic string, numAccounts uint64) *Keyring {
2222
seed := bip39.NewSeed(mnemonic, "")
2323

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

0 commit comments

Comments
 (0)