Skip to content

Commit

Permalink
fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Aug 4, 2024
1 parent de5a6d3 commit 6abbba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steps/42/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl<T: Config> Pallet<T> {

pub fn mint(owner: T::AccountId, dna: [u8; 32]) -> DispatchResult {
/* 🚧 TODO 🚧: Add the `price` field set to `None` when initializing the `Kitty` struct. */
let kitty = Kitty { dna, owner: owner.clone(), price: None };
let kitty = Kitty { dna, owner: owner.clone() };
// Check if the kitty does not already exist in our storage map
ensure!(!Kitties::<T>::contains_key(dna), Error::<T>::DuplicateKitty);

Expand Down

0 comments on commit 6abbba2

Please sign in to comment.