multiversx_sc_snippets::imports

Trait RegisterCodeSource

Source
pub trait RegisterCodeSource {
    // Required method
    fn into_code(self, env_data: ScenarioTxEnvData) -> Vec<u8> ;
}
Expand description

Used when registering a contract for debugging.

Any type that implements this trait can be passed to the register_contract method, and to its variants.

Required Methods§

Source

fn into_code(self, env_data: ScenarioTxEnvData) -> Vec<u8>

Implementations on Foreign Types§

Source§

impl RegisterCodeSource for &str

Source§

fn into_code(self, env_data: ScenarioTxEnvData) -> Vec<u8>

Implementors§