Fix treasury kept and spend when emptied (#3880)

* Now construct_runtime must include treasury config so account is created at genesis.
* if it doesn't though it is ok, account will be created when the amount put is more than existential deposit.
This commit is contained in:
thiolliere
2019-10-24 17:26:26 +02:00
committed by GitHub
parent 743a34bc1d
commit d49c36428d
4 changed files with 100 additions and 12 deletions
+3 -3
View File
@@ -83,8 +83,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to equal spec_version. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 183,
impl_version: 183,
spec_version: 184,
impl_version: 184,
apis: RUNTIME_API_VERSIONS,
};
@@ -482,7 +482,7 @@ construct_runtime!(
TechnicalMembership: membership::<Instance1>::{Module, Call, Storage, Event<T>, Config<T>},
FinalityTracker: finality_tracker::{Module, Call, Inherent},
Grandpa: grandpa::{Module, Call, Storage, Config, Event},
Treasury: treasury::{Module, Call, Storage, Event<T>},
Treasury: treasury::{Module, Call, Storage, Config, Event<T>},
Contracts: contracts,
Sudo: sudo,
ImOnline: im_online::{Module, Call, Storage, Event<T>, ValidateUnsigned, Config<T>},