Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: In memory.New, add nolint for uint32 overflow #61

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

jefft0
Copy link
Contributor

@jefft0 jefft0 commented Oct 28, 2024

The CI check for lint fails with:

Error: keyring/memory/memory.go:25:42: G115: integer overflow conversion uint64 -> uint32 (gosec)
  		key := generateKeyFromSeed(seed, uint32(i))

This PR adds //nolint:gosec to ignore it. Merging this PR will allow merging other PRs which are blocked by this failing CI check.

@zivkovicmilos
Copy link
Member

What do you think about having numAccounts as uint32 instead?

I think it's a fairly big number for keeping accounts in memory

@zivkovicmilos zivkovicmilos merged commit cb86e92 into gnolang:main Oct 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants