diff --git a/pallets/slpx/src/migration.rs b/pallets/slpx/src/migration.rs index 61f99a62b..934c227ef 100644 --- a/pallets/slpx/src/migration.rs +++ b/pallets/slpx/src/migration.rs @@ -77,11 +77,9 @@ impl OnRuntimeUpgrade for BifrostPolkadotAddCurrencyToSupportXcmFee = StorageValue< @@ -92,6 +90,19 @@ mod v0 { >, ValueQuery, >; + + #[derive(Encode, Decode)] + pub struct OldOrder { + pub source_chain_caller: OrderCaller, + pub bifrost_chain_caller: AccountId, + pub derivative_account: AccountId, + pub create_block_number: BlockNumber, + pub currency_id: CurrencyId, + pub currency_amount: Balance, + pub order_type: OrderType, + pub remark: BoundedVec>, + pub target_chain: TargetChain, + } } pub mod v1 { diff --git a/pallets/slpx/src/types.rs b/pallets/slpx/src/types.rs index e54269773..5290126d5 100644 --- a/pallets/slpx/src/types.rs +++ b/pallets/slpx/src/types.rs @@ -132,16 +132,3 @@ pub struct Order { pub target_chain: TargetChain, pub channel_id: u32, } - -#[derive(Encode, Decode, Clone, Eq, PartialEq, RuntimeDebug, TypeInfo, MaxEncodedLen)] -pub struct OldOrder { - pub source_chain_caller: OrderCaller, - pub bifrost_chain_caller: AccountId, - pub derivative_account: AccountId, - pub create_block_number: BlockNumber, - pub currency_id: CurrencyId, - pub currency_amount: Balance, - pub order_type: OrderType, - pub remark: BoundedVec>, - pub target_chain: TargetChain, -}