Expand description
Example that deploys a contract by forging and executing a contract creation transaction.
Re-exportsยง
pub(crate) use anyhow;๐pub(crate) use bail;๐pub(crate) use bytecode::opcode;๐pub(crate) use Context;๐pub(crate) use TxEnv;๐pub(crate) use ExecutionResult;๐pub(crate) use Output;๐pub(crate) use database::CacheDB;๐pub(crate) use database_interface::EmptyDB;๐pub(crate) use hex;๐pub(crate) use hex;๐pub(crate) use Bytes;๐pub(crate) use StorageValue;๐pub(crate) use TxKind;๐pub(crate) use ExecuteCommitEvm;๐pub(crate) use ExecuteEvm;๐pub(crate) use MainBuilder;๐pub(crate) use MainContext;๐
Constantsยง
- INIT_
CODE ๐ - Load number parameter and set to storage with slot 0
- RET ๐
- Copy runtime bytecode to memory and return
- RUNTIME_
BYTECODE ๐ - Load storage from slot zero to memory
Functionsยง
- main ๐