-
Notifications
You must be signed in to change notification settings - Fork 125
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
EEI: Specify signness #134
base: master
Are you sure you want to change the base?
Conversation
Can you split this into two PRs? One codifies what is happening in Hera right now, the other one changes to signed types. |
Looks like a lot of unnecessary work. |
Yeah but it would be nice to merge what's going on right now, and then we can review the proposed changes and reason about them, |
5879f4d
to
297701e
Compare
297701e
to
a48f9bc
Compare
I looked through each edit. I see no reason for any of these arguments to be signed. It just adds complexity, adds checking overhead, and decreases possible address offsets, lengths, indices, and gas by a factor of approximately two. I vote to interpret all of these arguments as unsigned integers. If a contract makes an error and uses a number which is negative in 2's complement, then they will probably quickly run out of gas. |
Agreed with @poemm , already had to deal with nasty sign conversion bugs in the EEI and I don't want the extra complexity. Plus, modifying the |
Resolves #132.