pub fn encode_constructor(
bytecode: &[u8],
constructor_args: &[AbiValue],
) -> Vec<u8> โExpand description
Build contract deployment calldata: bytecode || abi.encode(constructor_args).
ยงArguments
bytecodeโ The compiled contract bytecodeconstructor_argsโ Constructor arguments (empty if none)
Use this as the data field in a transaction with to: None.