Struct ink_env::call::CreateParams

source ·
pub struct CreateParams<E, ContractRef, Args, Salt, R>where
    E: Environment,
{ /* private fields */ }
Expand description

Builds up contract instantiations.

Implementations§

The code hash of the contract.

The gas limit for the contract instantiation.

The endowment for the instantiated contract.

The raw encoded input data.

Modify the selector.

Useful when using the CreateParams generated as part of the ContractRef, but using a custom selector.

The salt for determining the hash for the contract account ID.

Instantiates the contract and returns its account ID back to the caller.

Panics

This method panics if it encounters an ink::env::Error or an [ink::primitives::LangError][ink_primitives::LangError]. If you want to handle those use the try_instantiate method instead.

Instantiates the contract and returns its account ID back to the caller.

Note

On failure this returns an outer ink::env::Error or inner [ink::primitives::LangError][ink_primitives::LangError], both of which can be handled by the caller.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.