mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
Update to latest Substrate master (#863)
* Begin to update to latest Substrate master * Fix compilation * Remove `Balances` from `OnKilledAccount` * Update cli/src/command.rs Co-Authored-By: Cecile Tonglet <cecile@parity.io> * Change gossip name * Change again Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
This commit is contained in:
@@ -324,7 +324,7 @@ mod tests {
|
||||
type ModuleToIndex = ();
|
||||
type AccountData = balances::AccountData<u64>;
|
||||
type OnNewAccount = ();
|
||||
type OnReapAccount = Balances;
|
||||
type OnKilledAccount = Balances;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
@@ -421,7 +421,7 @@ mod tests {
|
||||
assert_eq!(Balances::free_balance(42), 0);
|
||||
assert_ok!(Claims::claim(Origin::NONE, 42, sig(&alice(), &42u64.encode())));
|
||||
assert_eq!(Balances::free_balance(&42), 100);
|
||||
assert_eq!(Vesting::vesting_balance(&42), 50);
|
||||
assert_eq!(Vesting::vesting_balance(&42), Some(50));
|
||||
assert_eq!(Claims::total(), 0);
|
||||
});
|
||||
}
|
||||
@@ -436,13 +436,13 @@ mod tests {
|
||||
assert_eq!(Balances::free_balance(42), 0);
|
||||
assert_noop!(
|
||||
Claims::claim(Origin::NONE, 69, sig(&bob(), &69u64.encode())),
|
||||
Error::<Test>::SignerHasNoClaim
|
||||
Error::<Test>::SignerHasNoClaim,
|
||||
);
|
||||
assert_ok!(Claims::mint_claim(Origin::ROOT, eth(&bob()), 200, None));
|
||||
assert_eq!(Claims::total(), 300);
|
||||
assert_ok!(Claims::claim(Origin::NONE, 69, sig(&bob(), &69u64.encode())));
|
||||
assert_eq!(Balances::free_balance(&69), 200);
|
||||
assert_eq!(Vesting::vesting_balance(&69), 0);
|
||||
assert_eq!(Vesting::vesting_balance(&69), None);
|
||||
assert_eq!(Claims::total(), 100);
|
||||
});
|
||||
}
|
||||
@@ -462,7 +462,7 @@ mod tests {
|
||||
assert_ok!(Claims::mint_claim(Origin::ROOT, eth(&bob()), 200, Some((50, 10, 1))));
|
||||
assert_ok!(Claims::claim(Origin::NONE, 69, sig(&bob(), &69u64.encode())));
|
||||
assert_eq!(Balances::free_balance(&69), 200);
|
||||
assert_eq!(Vesting::vesting_balance(&69), 50);
|
||||
assert_eq!(Vesting::vesting_balance(&69), Some(50));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -509,7 +509,7 @@ mod tests {
|
||||
// Everything should be unchanged
|
||||
assert_eq!(Claims::total(), 300);
|
||||
assert_eq!(Balances::free_balance(69), 1000);
|
||||
assert_eq!(Vesting::vesting_balance(&69), 1000);
|
||||
assert_eq!(Vesting::vesting_balance(&69), Some(1000));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user