Skip to content

Conversation

@stubbsta
Copy link
Contributor

@stubbsta stubbsta commented Nov 6, 2025

Description

Casting from uint64 to int may cause overflow error.
The register proc in the on_chain groupmanager makes an rpc call to get the gas price (which is uint64), multiplies it by 2 and casts to int to be used in the web3 send method.

Changes

Check for overflow before casting and use max int value if there is an overflow.

relates to #3643

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:3636

Built from 1ba9157

@stubbsta stubbsta changed the title Check for gasPrice overflow chore: Add gasprice overflow check Nov 26, 2025
@stubbsta
Copy link
Contributor Author

@Ivansete-status This PR is now ready for review, it is one part of resolving #3643

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants