ewasm/design

Update to Constantinople/Petersburg

axic opened this issue · 1 comments

axic commented
Update to Constantinople/Petersburg
s1na commented

The EEI-related Constantinople changes are CREATE2 and EXTCODEHASH if I'm not mistaken.

  • CREATE2: add a new method just like create with the additional parameter saltOffset: i32ptr (salt has fixed length of 32 bytes).
  • EXTCODEHASH: two options:
    • add a new method getExternalCodeHash(addressOffset, resultOffset)
    • add isAccountEmpty(addressOffset) (also see #138) and handle the rest on the wasm side.