Struct ink_env::call::CallParams

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

The final parameters to the cross-contract call.

Implementations§

Returns the call flags.

Returns the execution input.

Returns the account ID of the called contract instance.

Returns the chosen gas limit for the called contract execution.

Returns the transferred value for the called contract.

Returns the code hash which we use to perform a delegate call.

Invokes the contract with the given built-up call parameters.

Returns the result of the contract execution.

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_invoke method instead.

Invokes the contract with the given built-up call parameters.

Returns the result of the contract execution.

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.

Invoke the contract using Delegate Call semantics with the given built-up call parameters.

Returns the result of the contract execution.

Panics

This method panics if it encounters an ink::env::Error. If you want to handle those use the try_invoke method instead.

Invoke the contract using Delegate Call semantics with the given built-up call parameters.

Returns the result of the contract execution.

Note

On failure this returns an ink::env::Error 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.