ic_asset/error/compatibility.rs
1use crate::error::downgrade_commit_batch_arguments::DowngradeCommitBatchArgumentsV1ToV0Error;
2use thiserror::Error;
3
4/// Errors that occur when trying to deploy to an older version of the asset canister.
5#[derive(Error, Debug)]
6pub enum CompatibilityError {
7 /// Failed to downgrade from v1::CommitBatchArguments to v0::CommitBatchArguments.
8 #[error(
9 "Failed to downgrade from v1::CommitBatchArguments to v0::CommitBatchArguments: {0}. Please upgrade your asset canister, or use older tooling (dfx<=v-0.13.1 or icx-asset<=0.20.0)"
10 )]
11 DowngradeV1TOV0Failed(DowngradeCommitBatchArgumentsV1ToV0Error),
12}