Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Build fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork committed Dec 3, 2018
1 parent 06cef2a commit e1853be
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions srml/council/src/voting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use rstd::prelude::*;
use rstd::borrow::Borrow;
use codec::HasCompact;
use primitives::traits::{Hash, As};
use primitives::traits::{Hash, As, Zero};
use runtime_io::print;
use srml_support::dispatch::Result;
use srml_support::{StorageValue, StorageMap, IsSubType};
Expand Down Expand Up @@ -216,8 +216,8 @@ impl<T: Trait> Module<T> {
if tally.0 > tally.1 + tally.2 {
Self::kill_veto_of(&proposal_hash);
match tally {
(_, 0, 0) => <democracy::Module<T>>::internal_start_referendum(proposal, democracy::VoteThreshold::SuperMajorityAgainst).map(|_| ())?,
_ => <democracy::Module<T>>::internal_start_referendum(proposal, democracy::VoteThreshold::SimpleMajority).map(|_| ())?,
(_, 0, 0) => <democracy::Module<T>>::internal_start_referendum(proposal, democracy::VoteThreshold::SuperMajorityAgainst, Zero::zero()).map(|_| ())?,
_ => <democracy::Module<T>>::internal_start_referendum(proposal, democracy::VoteThreshold::SimpleMajority, Zero::zero()).map(|_| ())?,
};
}
}
Expand Down
2 changes: 2 additions & 0 deletions srml/democracy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ impl<T: Trait> Module<T> {
}
}

// TODO: These should be wired-in into the runtime.

impl<T: Trait> balances::OnFreeBalanceZero<T::AccountId> for Module<T> {
fn on_free_balance_zero(who: &T::AccountId) {
<Bondage<T>>::remove(who);
Expand Down
5 changes: 0 additions & 5 deletions srml/grandpa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,8 @@ use runtime_support::storage::unhashed::StorageVec;
use primitives::traits::{CurrentHeight, Convert};
use substrate_primitives::AuthorityId;
use system::ensure_signed;

#[cfg(feature = "std")]
use primitives::traits::MaybeSerializeDebug;

#[cfg(not(feature = "std"))]
use primitives::traits::MaybeSerializeDebugButNotDeserialize;

mod mock;
mod tests;

Expand Down

0 comments on commit e1853be

Please sign in to comment.