Take genesis_storage by ref (#4617)

Instead of having these weird implementation of `BuildStorage for
&ChainSpec` we should just take the `genesis_storage` by ref. The
`BuildStorage` trait changed some time ago to take a self ref anyway,
instead of a self value.

Also fixes warnings in frame-staking
This commit is contained in:
Bastian Köcher
2020-01-14 11:18:56 +01:00
committed by GitHub
parent 4a353f1e81
commit ee5e8050c3
7 changed files with 10 additions and 12 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ impl<Executor, Backend, G: GenesisInit> TestClientBuilder<Executor, Backend, G>
let client = sc_client::Client::new(
self.backend.clone(),
executor,
storage,
&storage,
Default::default(),
Default::default(),
ExecutionExtensions::new(