pub fn update_data(&mut self, data_json: &str, abi_json: &str) -> Result<()> {
        let new_data = ton_abi::json_abi::update_contract_data(
            abi_json,
            data_json,
            self.state_init.data.clone().unwrap_or_default().into(),
        )?;

        self.state_init.set_data(new_data.into_cell());
        self.id = self.state_init.hash()?.into();

        Ok(())
    }
///Allows to change initial values for public contract variables
Allows to change initial values for public contract variables
Allows to change initial values for public contract variables
pub fn update_data(&mut self, data_json: &str, abi_json: &str) -> Result<()> {
        let new_data = ton_abi::json_abi::update_contract_data(
            abi_json,
            data_json,
            self.state_init.data.clone().unwrap_or_default().into(),
        )?;
        self.state_init.set_data(new_data.into_cell());
        self.id = self.state_init.hash()?.into();
        Ok(())
    }
pub fn update_data ( & mut self , data_json : & str , abi_json : & str ) -> Result < ( ) > { let new_data = ton_abi :: json_abi :: update_contract_data ( abi_json , data_json , self . state_init . data . clone ( ) . unwrap_or_default ( ) . into ( ) , ) ? ; self . state_init . set_data ( new_data . into_cell ( ) ) ; self . id = self . state_init . hash ( ) ? . into ( ) ; Ok ( ( ) ) }
Allows to change initial values for public contract variables
Allows to change initial values for public contract variables
&mut self
data_json
&str
abi_json
&str