Update Balances Pallet for decl_error! (#4405)

* Update balances for `decl_error!`

* Update for new `decl_error`

* Fix staking tests

* Use `ok_or` over `match`
This commit is contained in:
Shawn Tabrizi
2019-12-20 00:23:20 +01:00
committed by GitHub
parent dfe87ec61e
commit 4fffe19c28
5 changed files with 120 additions and 76 deletions
+1 -1
View File
@@ -784,7 +784,7 @@ decl_event!(
);
decl_error! {
/// Error for the stacking module.
/// Error for the staking module.
pub enum Error for Module<T: Trait> {
/// Not a controller account.
NotController,