Skip to content

Commit b72917b

Browse files
committed
clean up static string stuff fix #29
1 parent 39fa0fa commit b72917b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

steps/6/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Maps are simple `key -> value` objects, allowing us to define an arbitrary sized
1717

1818
2. Create a `balances` field in `Pallet` using the `BTreeMap`.
1919

20-
For the `key`, we are using a simple static string for now. This way we can access users like `"alice"`, `"bob"`, etc... This will be changed in the future.
20+
For the `key`, we are using a string for now. This way we can access users like `"alice"`, `"bob"`, etc... This will be changed in the future.
2121

2222
For the `value`, we will use a `u128`, which is the largest natively supported type in Rust. This will allow our users to have very, very large balances if we want.
2323

steps/61/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Let's take a look at that process.
88

99
1. The first place to start is adding the `proof_of_existence` field to your `struct Runtime`.
1010
2. Next you need to update your `fn new()` to also initialize `proof_of_existence`.
11-
3. After, create a new concrete `type Content` which is a `&'static str`. As mentioned, normally this would be a hash, but for simplicity we are once again a simple static string.
11+
3. After, create a new concrete `type Content` which is a `String`. As mentioned, normally this would be a hash, but for simplicity we are once again using a simple string.
1212

1313
> If you want to use a hash now or in the future, it would be as simple as updating this one line to change all the types in your Runtime and Pallet. That is the kind of flexibility we have been working toward!
1414

0 commit comments

Comments
 (0)