Closed stackaccount1 closed 2 years ago
Can you please tell me step by step how you got the issue starting from:
git clone https://github.com/PatrickAlphaC/hardhat-fund-me-fcc
cd hardhat-fund-me-fcc
yarn
yarn hardhat test
Can you please tell me step by step how you got the issue starting from:
git clone https://github.com/PatrickAlphaC/hardhat-fund-me-fcc cd hardhat-fund-me-fcc yarn yarn hardhat test
Thank you for taking the time to respond to me. This is the error I receive following the above steps as you stated:
hardhat-fund-me-fcc$ yarn hardhat test
yarn run v1.22.19
warning package.json: No license field
warning ../../../package.json: No license field
$ /home/user/Desktop/test-hh-fcc/hardhat-fund-me-fcc/node_modules/.bin/hardhat test
Compiling 5 files with 0.6.6
Compiling 4 files with 0.8.8
Warning: Unused local variable.
--> contracts/exampleContracts/FunWithStorage.sol:28:9:
|
28 | uint256 newVar = favoriteNumber + 1; // SLOAD
| ^^^^^^^^^^^^^^
Warning: Unused local variable.
--> contracts/exampleContracts/FunWithStorage.sol:29:9:
|
29 | bool otherVar = someBool; // SLOAD
| ^^^^^^^^^^^^^
Warning: Function state mutability can be restricted to view
--> contracts/exampleContracts/FunWithStorage.sol:27:5:
|
27 | function doStuff() public {
| ^ (Relevant source part starts here and spans across multiple lines).
Solidity compilation finished successfully
FundMe
constructor
✓ sets the aggregator addresses correctly
fund
✓ Fails if you don't send enough ETH
✓ Updates the amount funded data structure
✓ Adds funder to array of funders
withdraw
✓ withdraws ETH from a single funder
GasCost: 101605997795040
GasUsed: 77744
GasPrice: 1306930410
✓ is allows us to withdraw with multiple funders
✓ Only allows the owner to withdraw
7 passing (1s)
Done in 4.04s.
So after modifying that FundWithStorage.sol contract to compile properly, I believe I then run into the error I posted. Just fyi, if I modify the contract and edit the deploy script to:
`Location ${i}: ${await ethers.provider.getStorageAt(
funWithStorage.address,
ethers.utils.keccak256(i)
)}`
I log storage locations but nothing shows existing in storage locations only 0x000-000s.
Thank you so much for your time and creating this course. I appreciate you.
Can you please tell me step by step how you got the issue starting from:
git clone https://github.com/PatrickAlphaC/hardhat-fund-me-fcc cd hardhat-fund-me-fcc yarn yarn hardhat test
yarn hardhat deploy
instead of
yarn hardhat test
everything works properly. thank you.
Receiving the following error when running the 99-deploy-storage-fun.js ->
My code is exactly the same not sure if anyone else is running into this issue?