multiversx_sc_snippets::imports

Trait TxData

Source
pub trait TxData<Env>
where Env: TxEnv,
{ // Required methods fn is_no_call(&self) -> bool; fn to_call_data_string(&self) -> ManagedBuffer<<Env as TxEnv>::Api>; }
Expand description

Marks the data field of a transaction in Tx.

Can be nothing, deploy data, call data, etc.

Required Methods§

Implementations on Foreign Types§

Source§

impl<Env> TxData<Env> for ()
where Env: TxEnv,

Implementors§

Source§

impl<Env> TxData<Env> for FunctionCall<<Env as TxEnv>::Api>
where Env: TxEnv,

Source§

impl<Env, CodeSource> TxData<Env> for DeployCall<Env, CodeSource>
where Env: TxEnv, CodeSource: TxCodeSource<Env>,

Source§

impl<Env, CodeSource> TxData<Env> for UpgradeCall<Env, CodeSource>
where Env: TxEnv, CodeSource: TxCodeSource<Env>,