From ec14a00d25021ac4f4594fc0305bb7b0ea992e06 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Tue, 19 Nov 2024 20:34:14 +0800 Subject: [PATCH] mdBook generated from gitorial --- src/21/solution/solution.diff | 4 ++-- src/21/template/src/impls.rs | 2 +- src/21/template/template.diff | 4 ++-- src/26/solution/solution.diff | 4 ++-- src/26/template/src/impls.rs | 2 +- src/26/template/template.diff | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/21/solution/solution.diff b/src/21/solution/solution.diff index 8cbaedff..35511700 100644 --- a/src/21/solution/solution.diff +++ b/src/21/solution/solution.diff @@ -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; diff --git a/src/21/template/src/impls.rs b/src/21/template/src/impls.rs index bfd7fdb2..fac2eada 100644 --- a/src/21/template/src/impls.rs +++ b/src/21/template/src/impls.rs @@ -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 Pallet { diff --git a/src/21/template/template.diff b/src/21/template/template.diff index 155a8003..1ab6b4e8 100644 --- a/src/21/template/template.diff +++ b/src/21/template/template.diff @@ -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 Pallet { diff --git a/src/26/solution/solution.diff b/src/26/solution/solution.diff index 607defe6..abab7dc7 100644 --- a/src/26/solution/solution.diff +++ b/src/26/solution/solution.diff @@ -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 Pallet { @@ -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::::TooManyOwned`. diff --git a/src/26/template/src/impls.rs b/src/26/template/src/impls.rs index e760af12..d44508bd 100644 --- a/src/26/template/src/impls.rs +++ b/src/26/template/src/impls.rs @@ -44,7 +44,7 @@ impl Pallet { /* 🚧 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::::TooManyOwned`. diff --git a/src/26/template/template.diff b/src/26/template/template.diff index 986d6225..ca43360d 100644 --- a/src/26/template/template.diff +++ b/src/26/template/template.diff @@ -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 Pallet { @@ -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::::TooManyOwned`.