erc6551 / reference

ERC-6551 reference implementation
152 stars 50 forks source link

Correct the 4th parameter of extcodecopy to length instead of end #7

Closed kingster-will closed 1 year ago

kingster-will commented 1 year ago

Per the description of EVM opcode EXTCODECOPY, the 4th parameter should be the "length" of bytes to copy from the source code. https://ethervm.io/#3C

As we want to copy 0x60 bytes from the source contract, we need to put 0x60 as the 4th parameter instead the end offset "0xad". The same applies to parsing salt.