-
Hey guys I have just started the PuppyRaffle part of this course but whenever I try logging something in the console for example the PoC test about the "Reentrancy Exploit" found in the Refund() function. At first I thought it was me doing something wrong so I checked the tutorial word-by-word to do the test for that and console.log("starting attacker contract balance: ",startingAttackContractBalance);
console.log("starting contract balance: ",stratingContractBalance);
console.log("ending attacker contract balance: ", address(attackerContract).balance);
console.log("ending contract balance: ",address(puppyRaffle).balance); and this part whenever I run forge test --mt testReentrancyRefund -vvv it doesn't show the logs, it just says Ran 1 test for test/PuppyRaffleTest.t.sol:PuppyRaffleTest
[PASS] testReentrancyRefund() (gas: 636291)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 699.61µs (229.70µs CPU time) What is interesting tho is that whenever I remove anything after the ',' it prints the text but with any value after the text it doesn't. I tried searching for quite a while, tried AI even but it couldn't help me so yeah I decided to ask in here. I am on the latest foundry version |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Nevermind I fixed it by just copying the code of the |
Beta Was this translation helpful? Give feedback.
Nevermind I fixed it by just copying the code of the
console.sol
file from the newest forge-std and pasting it over in the one that comes with the project's repo