Skip to content

Instantly share code, notes, and snippets.

@shanefontaine
Last active June 5, 2023 08:13
Show Gist options
  • Save shanefontaine/78f1c628405b2942a5f0fcd02d967f13 to your computer and use it in GitHub Desktop.
Save shanefontaine/78f1c628405b2942a5f0fcd02d967f13 to your computer and use it in GitHub Desktop.
Name Description On-chain Retrival Off-chain Retrieval
Creation Bytecode Code that generates the runtime bytecode type(ContractName).creationCode getTransactionByHash
Runtime Bytecode Code that is stored on-chain that describes a smart contract extcodecopy(a) or type(ContractName).runtimeCode getCode
Bytecode Umbrella term that encompasses both runtime bytecode and creation bytecode NA NA
Deployed Bytecode Same as runtime bytecode extcodecopy(a) or type(ContractName).runtimeCode getCode
Init Code Same as creation bytecode type(ContractName).creationCode getTransactionByHash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment