Skip to main contentModule creation_code
Source - CreationCodeArgs
- CLI arguments for
cast creation-code.
- constructor_args_offset ๐
- Returns the offset in
bytecode at which the ABI-encoded constructor arguments start. - constructor_with_args ๐
- Returns the constructor of
abi, failing if there is none or it takes no arguments. - fetch_creation_code ๐
- Connects to the configured RPC, pins
config.chain to it, and fetches the creation code of
contract using its Etherscan creation transaction. - load_abi ๐
- Loads the ABI of
contract from abi_path, or from Etherscan when no path is given. - parse_code_output ๐
- Parses the creation bytecode and returns one of the following: