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: update gas_limit variable type from u32 to u64 #62

Closed
wants to merge 1 commit into from
Closed

fix: update gas_limit variable type from u32 to u64 #62

wants to merge 1 commit into from

Conversation

ctrl-danny
Copy link

@ctrl-danny ctrl-danny commented Sep 8, 2023

Motivation

When collecting transactions data from other EVM chains (BSC) there were some transactions that had a gas_limit greater than u32::MAX() which caused an integer overflow error.

In BSC there are transactions that use i64::MAX as the gas limit. This is most commonly seen in the last transaction of the block where the validator deposits to the validator set.

Example here: https://bscscan.com/tx/0x7dcda3c9b1ced4c01f5634a88ab72a34ffc3d3f4c1fe1aed88c2fca0d0a34efd

Solution

Update data type for gas_limit variable for transactions from u32 to u64.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@sslivkoff
Copy link
Member

implemented as part of #76

@sslivkoff sslivkoff closed this Oct 15, 2023
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