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

Take last 4 bytes for memory access offsets #56

Open
s1na opened this issue Dec 20, 2019 · 0 comments
Open

Take last 4 bytes for memory access offsets #56

s1na opened this issue Dec 20, 2019 · 0 comments
Labels
evm Eth1 EE supporting EVM

Comments

@s1na
Copy link
Collaborator

s1na commented Dec 20, 2019

As mentioned in the rationale part of the EIP-1985 any memory offset larger than 32bits is not feasible (it'd need a really high amount of gas to expand memory beyond that).

We can therefore use a normal u32 for memory offsets (with the condition that if any of the preceding bits is 1, it should throw OOG).

@s1na s1na added the evm Eth1 EE supporting EVM label Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
evm Eth1 EE supporting EVM
Projects
None yet
Development

No branches or pull requests

1 participant