pub fn construct_deploy_message_json(
        params: FunctionCallSet,
        image: ContractImage,
        key_pair: Option<&Keypair>,
        workchain_id: i32,
    ) -> Result<SdkMessage> {
        let msg_body = ton_abi::encode_function_call(
            params.abi,
            params.func,
            params.header,
            params.input,
            false,
            key_pair,
        )?;

        let cell: SliceData = msg_body.into_cell()?.into();
        let msg = Self::create_ext_deploy_message(Some(cell), image, workchain_id)?;

        let address = match msg.dst_ref() {
            Some(address) => address.clone(),
            None => fail!(SdkError::InternalError {
                msg: "No address in created deploy message".to_owned()
            })
        };
        let (body, id) = Self::serialize_message(&msg)?;

        Ok(SdkMessage {
            id,
            serialized_message: body,
            message: msg,
            address,
        })
    }
// Packs given image and input into Message struct.
// Works with json representation of input and abi.
// Returns message's bag of cells and identifier.
Packs given image and input into Message struct.
Works with json representation of input and abi.
Returns message's bag of cells and identifier.
Packs given image and input into Message struct . Works with json representation of input and abi . Returns message ' s bag of cells and identifier .
pub fn construct_deploy_message_json(
        params: FunctionCallSet,
        image: ContractImage,
        key_pair: Option<&Keypair>,
        workchain_id: i32,
    ) -> Result<SdkMessage> {
        let msg_body = ton_abi::encode_function_call(
            params.abi,
            params.func,
            params.header,
            params.input,
            false,
            key_pair,
        )?;
        let cell: SliceData = msg_body.into_cell()?.into();
        let msg = Self::create_ext_deploy_message(Some(cell), image, workchain_id)?;
        let address = match msg.dst_ref() {
            Some(address) => address.clone(),
            None => fail!(SdkError::InternalError {
                msg: "No address in created deploy message".to_owned()
            })
        };
        let (body, id) = Self::serialize_message(&msg)?;
        Ok(SdkMessage {
            id,
            serialized_message: body,
            message: msg,
            address,
        })
    }
pub fn construct_deploy_message_json ( params : FunctionCallSet , image : ContractImage , key_pair : Option < & Keypair > , workchain_id : i32 , ) -> Result < SdkMessage > { let msg_body = ton_abi :: encode_function_call ( params . abi , params . func , params . header , params . input , false , key_pair , ) ? ; let cell : SliceData = msg_body . into_cell ( ) ? . into ( ) ; let msg = Self :: create_ext_deploy_message ( Some ( cell ) , image , workchain_id ) ? ; let address = match msg . dst_ref ( ) { Some ( address ) => address . clone ( ) , None => fail ! ( SdkError InternalError { msg " " to_owned ( ) } ) } ; let ( body , id ) = Self :: serialize_message ( & msg ) ? ; Ok ( SdkMessage { id , serialized_message : body , message : msg , address , } ) }
Packs given image and input into Message struct.
Packs given image and input into Message struct .
params
FunctionCallSet
image
ContractImage
key_pair
Option<&Keypair>
workchain_id
i32