Skip to content

Instantly share code, notes, and snippets.

@tqkve
Created February 10, 2023 10:06
Show Gist options
  • Select an option

  • Save tqkve/0d55c8bc6aa631ecf6959028cbd39b44 to your computer and use it in GitHub Desktop.

Select an option

Save tqkve/0d55c8bc6aa631ecf6959028cbd39b44 to your computer and use it in GitHub Desktop.
metadata that solidity compiler added to contract's runtime bytecode
>= v0.4.17
0xa1 0x65 'b' 'z' 'z' 'r' '0' 0x58 0x20 <32 bytes swarm hash> 0x00 0x29
>= 0.5.9
0xa2
0x65 'b' 'z' 'z' 'r' '0' 0x58 0x20 <32 bytes swarm hash>
0x64 's' 'o' 'l' 'c' 0x43 <3 byte version encoding>
0x00 0x32
>= 0.5.12
0xa2
0x65 'b' 'z' 'z' 'r' '1' 0x58 0x20 <32 bytes swarm hash>
0x64 's' 'o' 'l' 'c' 0x43 <3 byte version encoding>
0x00 0x32
>= 0.6.0
0xa2
0x64 'i' 'p' 'f' 's' 0x58 0x22 <34 bytes IPFS hash>
0x64 's' 'o' 'l' 'c' 0x43 <3 byte version encoding>
0x00 0x32
>= 0.6.2
0xa2
0x64 'i' 'p' 'f' 's' 0x58 0x22 <34 bytes IPFS hash>
0x64 's' 'o' 'l' 'c' 0x43 <3 byte version encoding>
0x00 0x33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment