Skip to content

Commit

Permalink
mdBook generated from gitorial
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Nov 19, 2024
1 parent 6757dbd commit ec14a00
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/21/solution/solution.diff
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
diff --git a/src/impls.rs b/src/impls.rs
index bfd7fdb..ff69cae 100644
index fac2ead..ff69cae 100644
--- a/src/impls.rs
+++ b/src/impls.rs
@@ -1,18 +1,22 @@
use super::*;
use frame::prelude::*;
-/* 🚧 TODO 🚧: Import `frame::primtives::BlakeTwo256`. */
-/* 🚧 TODO 🚧: Import `frame::primitives::BlakeTwo256`. */
-/* 🚧 TODO 🚧: Import `frame::traits::Hash`. */
+use frame::primitives::BlakeTwo256;
+use frame::traits::Hash;
Expand Down
2 changes: 1 addition & 1 deletion src/21/template/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::*;
use frame::prelude::*;
/* 🚧 TODO 🚧: Import `frame::primtives::BlakeTwo256`. */
/* 🚧 TODO 🚧: Import `frame::primitives::BlakeTwo256`. */
/* 🚧 TODO 🚧: Import `frame::traits::Hash`. */

impl<T: Config> Pallet<T> {
Expand Down
4 changes: 2 additions & 2 deletions src/21/template/template.diff
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
diff --git a/src/impls.rs b/src/impls.rs
index 5d3c104..bfd7fdb 100644
index 5d3c104..fac2ead 100644
--- a/src/impls.rs
+++ b/src/impls.rs
@@ -1,7 +1,19 @@
use super::*;
use frame::prelude::*;
+/* 🚧 TODO 🚧: Import `frame::primtives::BlakeTwo256`. */
+/* 🚧 TODO 🚧: Import `frame::primitives::BlakeTwo256`. */
+/* 🚧 TODO 🚧: Import `frame::traits::Hash`. */

impl<T: Config> Pallet<T> {
Expand Down
4 changes: 2 additions & 2 deletions src/26/solution/solution.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/src/impls.rs b/src/impls.rs
index e760af1..5574211 100644
index d44508b..5574211 100644
--- a/src/impls.rs
+++ b/src/impls.rs
@@ -36,28 +36,23 @@ impl<T: Config> Pallet<T> {
Expand All @@ -14,7 +14,7 @@ index e760af1..5574211 100644
-
- /* 🚧 TODO 🚧: Update the owner of the kitty:
- - Update `kitty.owner` to `to`.
- - Update the `KittiesOwned` of `from` and `to:
- - Update the `KittiesOwned` of `from` and `to:
- - Create a mutable `to_owned` by querying `KittiesOwned` for `to`.
- - `try_push` the `kitty_id` to the `to_owned` vector.
- - If the vector is full, `map_err` and return `Error::<T>::TooManyOwned`.
Expand Down
2 changes: 1 addition & 1 deletion src/26/template/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl<T: Config> Pallet<T> {

/* 🚧 TODO 🚧: Update the owner of the kitty:
- Update `kitty.owner` to `to`.
- Update the `KittiesOwned` of `from` and `to:
- Update the `KittiesOwned` of `from` and `to:
- Create a mutable `to_owned` by querying `KittiesOwned` for `to`.
- `try_push` the `kitty_id` to the `to_owned` vector.
- If the vector is full, `map_err` and return `Error::<T>::TooManyOwned`.
Expand Down
4 changes: 2 additions & 2 deletions src/26/template/template.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/src/impls.rs b/src/impls.rs
index 9d435f5..e760af1 100644
index 9d435f5..d44508b 100644
--- a/src/impls.rs
+++ b/src/impls.rs
@@ -36,6 +36,29 @@ impl<T: Config> Pallet<T> {
Expand All @@ -14,7 +14,7 @@ index 9d435f5..e760af1 100644
+
+ /* 🚧 TODO 🚧: Update the owner of the kitty:
+ - Update `kitty.owner` to `to`.
+ - Update the `KittiesOwned` of `from` and `to:
+ - Update the `KittiesOwned` of `from` and `to:
+ - Create a mutable `to_owned` by querying `KittiesOwned` for `to`.
+ - `try_push` the `kitty_id` to the `to_owned` vector.
+ - If the vector is full, `map_err` and return `Error::<T>::TooManyOwned`.
Expand Down

0 comments on commit ec14a00

Please sign in to comment.