Skip to content

Commit 70bee02

Browse files
committed
Update HOWTO
1 parent eee089f commit 70bee02

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

HOWTO.md

+4-12
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
With our pallet now compiling and passing it's tests, we're ready to add it to our node.
44

55
```
6-
git clone -b v2.0.0-rc3 --depth 1 https://github.com/substrate-developer-hub/substrate-node-template
6+
git clone -b v2.0.0 --depth 1 https://github.com/substrate-developer-hub/substrate-node-template
77
```
88

99
We first add our newly-created crate as a dependency in the node's runtime Cargo.toml. Then we tell the pallet to only build its std feature when the runtime itself does, as follows:
@@ -12,13 +12,7 @@ We first add our newly-created crate as a dependency in the node's runtime Cargo
1212

1313
``` TOML
1414
# --snip--
15-
16-
[dependencies.pallet-did]
17-
default-features = false
18-
git = 'https://github.com/substrate-developer-hub/pallet-did'
19-
package = 'pallet-did'
20-
tag = '2.0.0-rc3'
21-
version = '2.0.0-rc3'
15+
pallet-did = { git = 'https://github.com/substrate-developer-hub/pallet-did', default-features = false, version = '2.0.0' }
2216

2317

2418
# toward the bottom
@@ -32,14 +26,12 @@ std = [
3226
Next we will update `my-node/runtime/src/lib.rs` to actually use our new runtime pallet, by adding a trait implementation with our pallet_did and add it in our construct_runtime! macro.
3327

3428
``` rust
35-
// add this import at the top
36-
use sp_runtime::MultiSigner;
37-
3829
// add the following code block
3930
impl pallet_did::Trait for Runtime {
4031
type Event = Event;
41-
type Public = MultiSigner;
32+
type Public = sp_runtime::MultiSigner;
4233
type Signature = Signature;
34+
type Time = pallet_timestamp::Module<Runtime>;
4335
}
4436

4537
// --snip--

0 commit comments

Comments
 (0)