You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
U256 is used as the stack in revm is U256 and most of the instructions are done easier on u256 so the storage keys are all in u256.
There is a possible discussion if we would like for storage keys to be B256 types, then we do transition from stack U256 to B256 when SLOT/STORE are used but I feel that there will be slight downsides than the benefits.
I think the very beneficial thing for this will be Generics over Transaction: #916
would make this a lot easier to do.
Both Reth and Foundry use
B256
and have to use utilities to convert toU256
:I think the bigger problem here is that Revm uses
U256
for all storage slot key and values, which has a different memory layout thanB256
.The text was updated successfully, but these errors were encountered: