pub fn run_local_msg(
        &self,
        address: &TonAddress,
        account: Option<JsonValue>,
        message: EncodedMessage,
        abi: Option<JsonValue>,
        function_name: Option<&str>,
        context: Option<LocalRunContext>,
        emulate_transaction: bool,
    ) -> TonResult<ResultOfLocalRun> {
        Interop::json_request(self.context, "contracts.run.local.msg", ParamsOfLocalRunWithMsg {
            address: address.clone(),
            account: option_params_to_value(account)?,
            message_base64: base64::encode(&message.message_body),
            abi: option_params_to_value(abi)?,
            function_name: function_name.map(|val| val.to_string()),
            context,
            full_run: emulate_transaction
        })
    }
/// Run the contract function with given parameters locally
Run the contract function with given parameters locally
Run the contract function with given parameters locally
pub fn run_local_msg(
        &self,
        address: &TonAddress,
        account: Option<JsonValue>,
        message: EncodedMessage,
        abi: Option<JsonValue>,
        function_name: Option<&str>,
        context: Option<LocalRunContext>,
        emulate_transaction: bool,
    ) -> TonResult<ResultOfLocalRun> {
        Interop::json_request(self.context, "contracts.run.local.msg", ParamsOfLocalRunWithMsg {
            address: address.clone(),
            account: option_params_to_value(account)?,
            message_base64: base64::encode(&message.message_body),
            abi: option_params_to_value(abi)?,
            function_name: function_name.map(|val| val.to_string()),
            context,
            full_run: emulate_transaction
        })
    }
pub fn run_local_msg ( & self , address : & TonAddress , account : Option < JsonValue > , message : EncodedMessage , abi : Option < JsonValue > , function_name : Option < & str > , context : Option < LocalRunContext > , emulate_transaction : bool , ) -> TonResult < ResultOfLocalRun > { Interop :: json_request ( self . context , " " , ParamsOfLocalRunWithMsg { address : address . clone ( ) , account : option_params_to_value ( account ) ? , message_base64 : base64 :: encode ( & message . message_body ) , abi : option_params_to_value ( abi ) ? , function_name : function_name . map ( | val | val . to_string ( ) ) , context , full_run : emulate_transaction } ) }
Run the contract function with given parameters locally
Run the contract function with given parameters locally
&self
address
&TonAddress
account
Option<JsonValue>
message
EncodedMessage
abi
Option<JsonValue>
function_name
Option<&str>
context
Option<LocalRunContext>
emulate_transaction
bool