referrerpolicy=no-referrer-when-downgrade

Function eth_instantiate_with_code

Source
pub fn eth_instantiate_with_code<T: Config>(
    value: U256,
    gas_limit: Weight,
    storage_deposit_limit: BalanceOf<T>,
    code: Vec<u8>,
    data: Vec<u8>,
)
Expand description

Same as [Self::instantiate_with_code], but intended to be dispatched only by an EVM transaction through the EVM compatibility layer.

Calling this dispatchable ensures that the origin’s nonce is bumped only once, via the CheckNonce transaction extension. In contrast, [Self::instantiate_with_code] also bumps the nonce after contract instantiation, since it may be invoked multiple times within a batch call transaction.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::eth_instantiate_with_code.