Function gstd::prog::create_program_bytes_for_reply_as
source · pub fn create_program_bytes_for_reply_as<D: Decode>(
code_id: CodeId,
salt: impl AsRef<[u8]>,
payload: impl AsRef<[u8]>,
value: u128,
reply_deposit: u64,
) -> Result<CodecCreateProgramFuture<D>>
Expand description
Same as create_program_bytes
, but the program
will interrupt until the reply is received.
Argument reply_deposit: u64
used to provide gas for
future reply handling (skipped if zero).
The output should be decodable via SCALE codec.