From c8c2e0f98b53f5bec4cb001f9c5cf1ec990bbd8b Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Tue, 19 Nov 2024 20:32:45 +0800 Subject: [PATCH] Fix feedback from #189 --- steps/31/src/impls.rs | 2 +- steps/40/src/impls.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/steps/31/src/impls.rs b/steps/31/src/impls.rs index bfd7fdb2..fac2eada 100644 --- a/steps/31/src/impls.rs +++ b/steps/31/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/steps/40/src/impls.rs b/steps/40/src/impls.rs index e760af12..d44508bd 100644 --- a/steps/40/src/impls.rs +++ b/steps/40/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`.