Skip to content
Snippets Groups Projects
Unverified Commit 00aba960 authored by Wei Tang's avatar Wei Tang Committed by GitHub
Browse files

Upgrade to substrate HEAD (#70)

parent 7a8d33ec
Branches
No related merge requests found
Pipeline #30893 passed with stages
in 10 minutes and 18 seconds
This diff is collapsed.
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
use runtime_primitives::{BuildStorage, StorageMap, ChildrenStorageMap};
use runtime_primitives::{BuildStorage, StorageOverlay, ChildrenStorageOverlay};
use primitives::{ValidatorId, Epoch, Balance, storage::well_known_keys};
use codec::{Encode, KeyedVec};
use crate::storage;
......@@ -29,8 +29,8 @@ pub struct GenesisConfig {
}
impl BuildStorage for GenesisConfig {
fn build_storage(self) -> Result<(StorageMap, ChildrenStorageMap), String> {
let mut storage = StorageMap::default();
fn build_storage(self) -> Result<(StorageOverlay, ChildrenStorageOverlay), String> {
let mut storage = StorageOverlay::default();
storage.insert(well_known_keys::CODE.to_vec(), self.code.clone());
......
This diff is collapsed.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment