I understand there is CBOR encoded metadata at the end of contract binary. But for this contract, there seems to be some other trailing data. Here is how I tried to decode it:

  1. Get the runtime code, as the latter 0x113d bytes from the creation code
  2. Get the length of metadata, as the last 2 bytes "00 32"
  3. Remove the last 0x32+2 bytes, should be the end of the contract

Then I tried to disassemble it line by line, but got an error at offset 0x1105, it's 0x72 and parsed as PUSH19 but there isn't 19 bytes left: enter image description here

These trailing bytes look like strings, what are these bytes?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.