Use RuntimeHoldReason for the NIS pallet HoldReason (#7017)

* Use RuntimeHoldReason for the NIS pallet HoldReason

* Update substrate

* Fixes

* Fixes

* Fixes

* Fixes

* Move encoding test to tests.rs
This commit is contained in:
Keith Yeung
2023-04-13 16:00:26 +08:00
committed by GitHub
parent b3070be001
commit 3df25a1fd7
4 changed files with 207 additions and 232 deletions
+5
View File
@@ -25,6 +25,11 @@ use runtime_common::MinimumMultiplier;
use separator::Separatable;
use sp_runtime::FixedPointNumber;
#[test]
fn nis_hold_reason_encoding_is_correct() {
assert_eq!(NisHoldReason::get().encode(), [38, 0]);
}
#[test]
fn remove_keys_weight_is_sensible() {
use runtime_common::crowdloan::WeightInfo;