pub struct MultiContractCallHandler {
    pub contract_calls: Vec<ContractCall>,
    pub log_decoder: LogDecoder,
    pub tx_parameters: TxParameters,
    pub wallet: WalletUnlocked,
}
Expand description

Helper that handles bundling multiple calls into a single transaction

Fields§

§contract_calls: Vec<ContractCall>§log_decoder: LogDecoder§tx_parameters: TxParameters§wallet: WalletUnlocked

Implementations§

Adds a contract call to be bundled in the transaction Note that this is a builder method

Sets the transaction parameters for a given transaction. Note that this is a builder method

Returns the script that executes the contract calls

Call contract methods on the node, in a state-modifying manner.

Call contract methods on the node, in a simulated manner, meaning the state of the blockchain is not modified but simulated. It is the same as the call method because the API is more user-friendly this way.

Simulates the call and attempts to resolve missing tx dependencies. Forwards the received error if it cannot be fixed.

Get a contract’s estimated cost

Create a FuelCallResponse from call receipts

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more