pub fn disable_custom_script(
        &mut self,
        space_delim_strings: &[&str],
        is_blocking: bool,
    ) -> Result<()> {
        ensure!(
            space_delim_strings[0] == "disable_custom_script",
            "inconsistent command '{}' for disable_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::Locked(
                    StdlibScript::whitelist(),
                )),
                is_blocking,
            ),
            None => unimplemented!(),
        }
    }
/// Only allow executing predefined script in the Move standard library in the network.
Only allow executing predefined script in the Move standard library in the network.
Only allow executing predefined script in the Move standard library in the network .
pub fn disable_custom_script(
        &mut self,
        space_delim_strings: &[&str],
        is_blocking: bool,
    ) -> Result<()> {
        ensure!(
            space_delim_strings[0] == "disable_custom_script",
            "inconsistent command '{}' for disable_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::Locked(
                    StdlibScript::whitelist(),
                )),
                is_blocking,
            ),
            None => unimplemented!(),
        }
    }
pub fn disable_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 :: Locked ( StdlibScript :: whitelist ( ) , ) ) , is_blocking , ) , None => unimplemented ! ( ) , } }
Only allow executing predefined script in the Move standard library in the network.
Only allow executing predefined script in the Move standard library in the network .
&mut self
space_delim_strings
&[&str]
is_blocking
bool
&mut self
space_delim_strings
&[&str]
is_blocking
bool