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

BIGINTEGER_LENGTH not needed #15

Open
fulldecent opened this issue Aug 4, 2019 · 2 comments
Open

BIGINTEGER_LENGTH not needed #15

fulldecent opened this issue Aug 4, 2019 · 2 comments

Comments

@fulldecent
Copy link
Contributor

It should not be necessary to set a fixed length. I believe this is left over from the Solidity version of the ATS standard.

@jennijuju
Copy link
Owner

  1. AionBuffer.put32 is for BigInteger that has a size of 32 bytes.
  2. 32 bytes is used for easier decoding for events.

@fulldecent
Copy link
Contributor Author

Could you please explain more and provide references? In AIP-041 we only have BigIntegers everywhere.

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

No branches or pull requests

2 participants