pub struct keylessDeployReturn {
pub gasUsed: u64,
pub deployedAddress: Address,
pub errorData: Bytes,
}Expand description
@notice Deploys a contract using a pre-EIP-155 signed transaction with a custom gas limit.
@dev The keyless deployment transaction must be a valid RLP-encoded legacy transaction:
- nonce: any value
- gasPrice: any value (typically 100 gwei for Nick’s Method)
- gasLimit: any value (must be <= gasLimitOverride)
- to: must be empty (contract creation)
- value: any value (typically 0)
- data: contract creation bytecode
- v: must be 27 or 28 (pre-EIP-155, no chain ID)
- r: signature component
- s: signature component
@param keylessDeploymentTransaction The RLP-encoded pre-EIP-155 signed transaction.
@param gasLimitOverride The gas limit for the inner deployment transaction.
Must be >= the gas limit in the keyless transaction.
@return gasUsed The amount of gas used by the deployment transaction execution.
Uses uint64 to match the EVM’s native gas accounting type (max ~18 exagas).
@return deployedAddress The address of the deployed contract (zero if execution failed).
@return errorData ABI-encoded error if execution failed, empty bytes on success.
Execution errors (ExecutionReverted, ExecutionHalted, EmptyCodeDeployed) return
success with errorData populated. Validation errors revert the entire call.
Container type for the return parameters of the keylessDeploy(bytes,uint256) function.
Fields§
§gasUsed: u64§deployedAddress: Address§errorData: BytesTrait Implementations§
Source§impl Clone for keylessDeployReturn
impl Clone for keylessDeployReturn
Source§fn clone(&self) -> keylessDeployReturn
fn clone(&self) -> keylessDeployReturn
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more