pub fn is_valid_size(&self, max_deploy_size: u32) -> Result<(), ExcessiveSizeError> {
        let deploy_size = self.serialized_length();
        if deploy_size > max_deploy_size as usize {
            return Err(ExcessiveSizeError {
                max_deploy_size,
                actual_deploy_size: deploy_size,
            });
        }
        Ok(())
    }
/// Returns true if the serialized size of the deploy is not greater than `max_deploy_size`.
Returns true if the serialized size of the deploy is not greater than `max_deploy_size`.
Returns true if the serialized size of the deploy is not greater than ` max_deploy_size ` .
pub fn is_valid_size(&self, max_deploy_size: u32) -> Result<(), ExcessiveSizeError> {
        let deploy_size = self.serialized_length();
        if deploy_size > max_deploy_size as usize {
            return Err(ExcessiveSizeError {
                max_deploy_size,
                actual_deploy_size: deploy_size,
            });
        }
        Ok(())
    }
pub fn is_valid_size ( & self , max_deploy_size : u32 ) -> Result < ( ) , ExcessiveSizeError > { let deploy_size = self . serialized_length ( ) ; if deploy_size > max_deploy_size as usize { return Err ( ExcessiveSizeError { max_deploy_size , actual_deploy_size : deploy_size , } ) ; } Ok ( ( ) ) }
Returns true if the serialized size of the deploy is not greater than `max_deploy_size`.
Returns true if the serialized size of the deploy is not greater than ` max_deploy_size ` .
&self
max_deploy_size
u32
&self
max_deploy_size
u32