biturbo
biturbo copied to clipboard
Take last 4 bytes for memory access offsets
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).