I'm new to Solidity and I have a question concerning to how to mock smart contract function's response.
My project has a token contract and it needs to read the token price from an Oracle contract.
For testing purpose, I would like to mock the price returned from the Oracle contract, does anyone know any tool or have any ideas on how to mock smart contract function's properly ?
Thanks a lot in advance !
You can see pancake prediction contract.
It uses oracle contract to get price.