pub fn enable_custom_script(
        &mut self,
        space_delim_strings: &[&str],
        is_blocking: bool,
    ) -> Result<()> {
        ensure!(
            space_delim_strings[0] == "enable_custom_script",
            "inconsistent command '{}' for enable_custom_script",
            space_delim_strings[0]
        );
        ensure!(
            space_delim_strings.len() == 1,
            "Invalid number of arguments for setting publishing option"
        );
        match self.faucet_account {
            Some(_) => self.association_transaction_with_local_faucet_account(
                transaction_builder::encode_publishing_option_script(
                    VMPublishingOption::CustomScripts,
                ),
                is_blocking,
            ),
            None => unimplemented!(),
        }
    }
/// Allow executing arbitrary script in the network.
Allow executing arbitrary script in the network.
Allow executing arbitrary script in the network .
pub fn enable_custom_script(
        &mut self,
        space_delim_strings: &[&str],
        is_blocking: bool,
    ) -> Result<()> {
        ensure!(
            space_delim_strings[0] == "enable_custom_script",
            "inconsistent command '{}' for enable_custom_script",
            space_delim_strings[0]
        );
        ensure!(
            space_delim_strings.len() == 1,
            "Invalid number of arguments for setting publishing option"
        );
        match self.faucet_account {
            Some(_) => self.association_transaction_with_local_faucet_account(
                transaction_builder::encode_publishing_option_script(
                    VMPublishingOption::CustomScripts,
                ),
                is_blocking,
            ),
            None => unimplemented!(),
        }
    }
pub fn enable_custom_script ( & mut self , space_delim_strings : & [ & str ] , is_blocking : bool , ) -> Result < ( ) > { ensure ! ( space_delim_strings [ 0 ] " " " " space_delim_strings [ 0 ] ) ; ensure ! ( space_delim_strings len ( ) 1 " " ) ; match self . faucet_account { Some ( _ ) => self . association_transaction_with_local_faucet_account ( transaction_builder :: encode_publishing_option_script ( VMPublishingOption :: CustomScripts , ) , is_blocking , ) , None => unimplemented ! ( ) , } }
Allow executing arbitrary script in the network.
Allow executing arbitrary script in the network .
&mut self
space_delim_strings
&[&str]
is_blocking
bool
&mut self
space_delim_strings
&[&str]
is_blocking
bool