You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently at 1:00:44 at the Solidity Course and I had problems while running
yarn hardhat test
I have this error:
`Nft Marketplace Test
1) "before each" hook for "lists and can be bought"
0 passing (8s)
1 failing
Nft Marketplace Test
"before each" hook for "lists and can be bought":
ERROR processing E:!!!!!!!!!!!!!!!000000000000DESKTOP\hardhat_nft_marketplace\deploy\02-deploy-basic-nft.js:
TypeError: Cannot read properties of undefined (reading 'length')
at getFrom (E:!!!!!!!!!!!!!!!000000000000DESKTOP\hardhat_nft_marketplace\node_modules\hardhat-deploy\src\helpers.ts:1642:14)
at fetchIfDifferent (E:!!!!!!!!!!!!!!!000000000000DESKTOP\hardhat_nft_marketplace\node_modules\hardhat-deploy\src\helpers.ts:829:34)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at runNextTicks (node:internal/process/task_queues:64:3)
at listOnTimeout (node:internal/timers:540:9)
at processTimers (node:internal/timers:514:7)
at _deployOne (E:!!!!!!!!!!!!!!!000000000000DESKTOP\hardhat_nft_marketplace\node_modules\hardhat-deploy\src\helpers.ts:907:24)`
I can not see where is the problem with my code and why this is not working.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently at 1:00:44 at the Solidity Course and I had problems while running
yarn hardhat test
I have this error:
`Nft Marketplace Test
0 passing (8s)
1 failing
"before each" hook for "lists and can be bought":
ERROR processing E:!!!!!!!!!!!!!!!000000000000DESKTOP\hardhat_nft_marketplace\deploy\02-deploy-basic-nft.js:
TypeError: Cannot read properties of undefined (reading 'length')
at getFrom (E:!!!!!!!!!!!!!!!000000000000DESKTOP\hardhat_nft_marketplace\node_modules\hardhat-deploy\src\helpers.ts:1642:14)
at fetchIfDifferent (E:!!!!!!!!!!!!!!!000000000000DESKTOP\hardhat_nft_marketplace\node_modules\hardhat-deploy\src\helpers.ts:829:34)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at runNextTicks (node:internal/process/task_queues:64:3)
at listOnTimeout (node:internal/timers:540:9)
at processTimers (node:internal/timers:514:7)
at _deployOne (E:!!!!!!!!!!!!!!!000000000000DESKTOP\hardhat_nft_marketplace\node_modules\hardhat-deploy\src\helpers.ts:907:24)`
I can not see where is the problem with my code and why this is not working.
This is the repository of my code: https://github.com/margelatufml/hardhat_nft_marketplace
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions