This file will list issues/updates by timestamp. If you have an issue that you don't see here, please make an issue on this repo.
- If you have any issues with a faucet, please try another testnet. You'll have to update some contract addresses based on the testnet you're working on. You can find the most up to date faucets here.
- If the Rinkeby faucet isn't working, you can use a kovan faucet, just be sure to use Kovan Etherscan and Kovan in your Metamask!
If you see something along the lines of:
ParserError: Source "OpenZeppelin/[email protected]/contracts/access/Ownable.sol" not found: File not found.
import "@openzeppelin/contracts/access/Ownable.sol";
In your vscode, these and be safely ignored. However you can also add to your settings to ignore these.
- Create a
.vscode
folder at the root of your project. - Create a file called
settings.json
- Add the following code:
{
"solidity.remappings": [
"@chainlink/=/Users/patrick/.brownie/packages/smartcontractkit/[email protected]",
"@openzeppelin/=/Users/patrick/.brownie/packages/OpenZeppelin/[email protected]"
]
}
Or whatever version your @chainlink
and @openzeppelin
contracts need. For example:
- In some integration tests, we do something like
time.sleep(60)
. Sometimes, you'll have to do much longer, we've had reports go up totime.sleep(300)
. So, if you want to try that, go get a coffee break while your integration test runs!
- 2:37:05 Kovan vs Rinkeby
- Our
FundMe.sol
needs to be deployed to the rinkeby chain to work, but if you go to try the price feeds from the Chainlink docs using the remix link, that one has the kovan price feeds in it, so needs to be deployed to kovan. - If you want to test the price feeds from the video using the Chainlink docs remix link, you'll need to follow the steps to get kovan ETH.
- Our
- 3:43:52 Installing solcx version 0.6.0
- In the video, we forgot to do 2 things in order to compile our solidity code:
- Import
install_solc
, so we need to change this line:from solcx import compile_standard
- To this line:
from solcx import compile_standard, install_solc
- And then, we need to add a line right before we run the
compile_standard
code:install_solc("0.6.0")
- Import
- In the video, we forgot to do 2 things in order to compile our solidity code:
- 8:06:54ish
- In the video, we use events exclusivly to test our contracts, however, we could have also used
tx.return_value
to get the return value of a function. - However, it's still best practice to learn how to use events, especially when updating mappings!
- In the video, we use events exclusivly to test our contracts, however, we could have also used