Skip to content

Commit

Permalink
chore: add origin to ccm failed (#4586)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3b1ba4e)
  • Loading branch information
albert-llimos authored and actions-user committed Feb 29, 2024
1 parent ca84e37 commit 1787eb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions state-chain/pallets/cf-swapping/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ pub mod pallet {
reason: CcmFailReason,
destination_address: EncodedAddress,
deposit_metadata: CcmDepositMetadata,
origin: SwapOrigin,
},
MaximumSwapAmountSet {
asset: Asset,
Expand Down Expand Up @@ -1003,6 +1004,7 @@ pub mod pallet {
reason,
destination_address: encoded_destination_address,
deposit_metadata,
origin: origin.clone(),
});
return Err(())
},
Expand Down
1 change: 1 addition & 0 deletions state-chain/pallets/cf-swapping/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ fn assert_failed_ccm(
reason,
destination_address: MockAddressConverter::to_encoded_address(destination_address),
deposit_metadata: ccm,
origin: SwapOrigin::Vault { tx_hash: Default::default() },
}));
}

Expand Down

0 comments on commit 1787eb2

Please sign in to comment.