Enum concordium_std::UpgradeError
source · #[repr(i32)]
pub enum UpgradeError {
MissingModule,
MissingContract,
UnsupportedModuleVersion,
}
Expand description
Errors that may occur when upgrading the smart contract module.
Variants§
MissingModule
Provided module does not exist.
MissingContract
Provided module does not contain a smart contract with a matching name.
UnsupportedModuleVersion
Provided module is a version 0 smart contract module.
Trait Implementations§
source§impl Clone for UpgradeError
impl Clone for UpgradeError
source§fn clone(&self) -> UpgradeError
fn clone(&self) -> UpgradeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UpgradeError
impl Debug for UpgradeError
source§impl From<UpgradeError> for Reject
impl From<UpgradeError> for Reject
MissingModule is i32::MIN + 22, MissingContract is i32::MIN + 23, UnsupportedModuleVersion is i32::MIN + 24.
source§fn from(te: UpgradeError) -> Self
fn from(te: UpgradeError) -> Self
Converts to this type from the input type.