Contract f4e6279d5d303d4a064de230eae2f2ed10160d79ac7462f8e866d5a19e38bffa

← Back to Index 📥 Download WASM

Meta

rssdkver 21.7.7#5da789c50b18a4c2be53394138212fed56f0dfc4
rsver 1.81.0

Instances

  • CB7AD6ADJGR5MJZZPDN4LCGQNJJOLRE6VTGNCZCOONJAZR6IN7S4GTFH

Interface

Deploy the contract Wasm and after deployment invoke the init function of the contract with the given arguments.

This has to be authorized by deployer (unless the Deployer instance itself is used as deployer). This way the whole operation is atomic and it's not possible to frontrun the contract initialization.

Returns the contract address and result of the init function.

fn deploy(
    env: soroban_sdk::Env,
    deployer: soroban_sdk::Address,
    wasm_hash: soroban_sdk::BytesN<32>,
    salt: soroban_sdk::BytesN<32>,
    init_fn: soroban_sdk::Symbol,
    init_args: soroban_sdk::Vec,
) -> (soroban_sdk::Address, soroban_sdk::Val)

Imports

WebAssembly Text (WAT) ▶