Skip to content

Commit 95926b1

Browse files
committed
fix(ex04): removed a line that was part of the solution
1 parent 3af11a1 commit 95926b1

File tree

1 file changed

+1
-3
lines changed
  • exercises/ex04-marketplace/loosely-coupled-marketplace/src

1 file changed

+1
-3
lines changed

exercises/ex04-marketplace/loosely-coupled-marketplace/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,9 @@ pub mod pallet {
119119
.checked_mul(&amount.checked_into().ok_or(Error::<T>::Overflow)?)
120120
.ok_or(Error::<T>::Overflow)?;
121121

122-
todo!("transfer amount of nft_id from the seller to the buyer");
123-
124122
todo!("transfer the amount of currency owed from the buyer to the seller");
125123

126-
T::Resource::transfer(nft_id, seller.clone(), buyer.clone(), amount);
124+
todo!("transfer amount of nft_id from the seller to the buyer");
127125

128126
if amount == sale_data.amount {
129127
ResourcesForSale::<T>::remove(nft_id, seller.clone());

0 commit comments

Comments
 (0)