Add HoldReason to the NIS pallet (#13823)

* Add HoldReason to the NIS pallet

* Rename composable_enum to composite_enum

* Add encoding test

* Add more doc comments
This commit is contained in:
Keith Yeung authored and GitHub committed 2023-04-06 06:24:45 +00:00
1 parent 3ace2f50c5
commit 38f3b053d7
8 files changed
+27 -9

No files matched your search

+8
View File
@@ -482,6 +482,14 @@ pub mod pallet {
AlreadyPrivate,
}
/// A reason for the NIS pallet placing a hold on funds.
#[pallet::composite_enum]
pub enum HoldReason {
/// The NIS Pallet has reserved it for a non-fungible receipt.
#[codec(index = 0)]
NftReceipt,
}
pub(crate) struct WeightCounter {
pub(crate) used: Weight,
pub(crate) limit: Weight,