Open Marupillasriram opened 12 months ago
Hello there,
Can you see any hints in the Console
? Usually, it provides a lot more feedback about why a test is failing.
i want to know while buying and selling the items, how to append the balance to the wallet address.
On this: Remember, there are blockchain-helper.js
functions. There are many functions in there to work with the wallets.
If you have further questions for help, I suggest using https://forum.freecodecamp.org/ instead of a GitHub issue as it is slightly easier to follow a conversation.
Hope this helps
thank you Shaun i will follow the forum.freecodecamp.org
Project
build-a-video-game-marketplace-blockchain
Lesson Number
open project(single lesson)
Question
7) ✗ Running node buy-item.js - should add a transaction at the end of the transactions.json array with the correct buyerAddress, sellerAddress, price, itemBought, and signature properties. Note: You may need to pass the balance check test right below this (test 8) for this to pass
8) ✗ Running node buy-item.js
- should not add a transaction if that address doesn't have enough funds to buy the item
9) ✗ Running node sell-item.js
- should add a transaction at the end of the transactions.json array with the correct buyerAddress, sellerAddress, price, itemSold, and signature properties. Note: You may need to pass the item check test right below this (test 10) for this to pass
10) ✓ Running node sell-item.js
- should not add a transaction if that address doesn't have that item to sell
Code and Screenshots
sell-item.js
buy-item.js
my logic with buying and selling is correct as per the given rules
i want to know while buying and selling the items, how to append the balance to the wallet address.