Struct multiversx_chain_vm::tx_mock::TxInput
source · pub struct TxInput {
pub from: Address,
pub to: Address,
pub egld_value: BigUint,
pub esdt_values: Vec<TxTokenTransfer>,
pub func_name: TxFunctionName,
pub args: Vec<Vec<u8>>,
pub gas_limit: u64,
pub gas_price: u64,
pub tx_hash: H256,
pub promise_callback_closure_data: Vec<u8>,
pub callback_payments: CallbackPayments,
}Fields§
§from: Address§to: Address§egld_value: BigUint§esdt_values: Vec<TxTokenTransfer>§func_name: TxFunctionName§args: Vec<Vec<u8>>§gas_limit: u64§gas_price: u64§tx_hash: H256§promise_callback_closure_data: Vec<u8>§callback_payments: CallbackPaymentsImplementations§
source§impl TxInput
impl TxInput
pub fn add_arg(&mut self, arg: Vec<u8>)
pub fn func_name_from_arg_index(&self, arg_index: usize) -> TxFunctionName
source§impl TxInput
impl TxInput
sourcepub fn received_egld(&self) -> &BigUint
pub fn received_egld(&self) -> &BigUint
The received EGLD can come either from the original caller, or from an async call, during callback.
sourcepub fn received_esdt(&self) -> &[TxTokenTransfer]
pub fn received_esdt(&self) -> &[TxTokenTransfer]
The received ESDT tokens can come either from the original caller, or from an async call, during callback.