mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 20:17:57 +00:00
* Some renames
* Fix
* Fix build for new APIs
* Remove diener
* Fixes
* Fixes
* Fix integration tests
* Fixes
* fix nis issuance
* Update Cargo.toml
* Polkadot doesn't have freezes/holds yet
* No networks use freezes/holds
* update lockfile for {"substrate"}
* Fix tests
There are more failing tests; just starting with the easy ones.
Reserved balance does not count towards ED anymore, therefore reducing
all the reserves by ED (1).
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Fixes for Polkadot pallets
* Fix parachains benchmarks
* Update Substrate
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -568,6 +568,10 @@ mod tests {
|
||||
type MaxLocks = ();
|
||||
type MaxReserves = ();
|
||||
type ReserveIdentifier = [u8; 8];
|
||||
type HoldIdentifier = ();
|
||||
type FreezeIdentifier = ();
|
||||
type MaxHolds = ConstU32<1>;
|
||||
type MaxFreezes = ConstU32<1>;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
@@ -844,9 +848,9 @@ mod tests {
|
||||
// max_num different people are reserved for leases to Para ID 1
|
||||
for i in 1u32..=max_num {
|
||||
let j: u64 = i.into();
|
||||
assert_ok!(Slots::lease_out(1.into(), &j, j * 10, i * i, i));
|
||||
assert_eq!(Slots::deposit_held(1.into(), &j), j * 10);
|
||||
assert_eq!(Balances::reserved_balance(j), j * 10);
|
||||
assert_ok!(Slots::lease_out(1.into(), &j, j * 10 - 1, i * i, i));
|
||||
assert_eq!(Slots::deposit_held(1.into(), &j), j * 10 - 1);
|
||||
assert_eq!(Balances::reserved_balance(j), j * 10 - 1);
|
||||
}
|
||||
|
||||
assert_ok!(Slots::clear_all_leases(RuntimeOrigin::root(), 1.into()));
|
||||
|
||||
Reference in New Issue
Block a user