biturbo icon indicating copy to clipboard operation
biturbo copied to clipboard

Take last 4 bytes for memory access offsets

Open s1na opened this issue 5 years ago • 0 comments

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 avatar Dec 20 '19 14:12 s1na