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

Commit

Permalink
fix upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain Brenzikofer committed Oct 12, 2020
1 parent 272aeb5 commit fdb605d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ fn testnet_genesis(
// Assign network admin rights.
key: root_key,
}),
template: Some(TemplateModuleConfig {
pallet_template: Some(TemplateModuleConfig {
some_double_map: vec![(1, 2, 3)],
})
}
Expand Down
2 changes: 2 additions & 0 deletions pallets/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package = 'parity-scale-codec'
version = '1.3.4'

[dependencies]
serde = { features = ['derive'], optional = true, version = '1.0.101' }
frame-support = { default-features = false, version = '2.0.0' }
frame-system = { default-features = false, version = '2.0.0' }

Expand All @@ -31,6 +32,7 @@ sp-runtime = { default-features = false, version = '2.0.0' }
default = ['std']
std = [
'codec/std',
'serde',
'frame-support/std',
'frame-system/std',
]
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ construct_runtime!(
TransactionPayment: pallet_transaction_payment::{Module, Storage},
Sudo: pallet_sudo::{Module, Call, Config<T>, Storage, Event<T>},
// Include the custom logic from the template pallet in the runtime.
TemplateModule: pallet_template::{Module, Call, Storage, Event<T>},
TemplateModule: pallet_template::{Module, Call, Storage, Event<T>, Config},
}
);

Expand Down

0 comments on commit fdb605d

Please sign in to comment.