How to test interactions of my contract with other contracts, like a USDT/BUSD on a hardhat local environment?
I write a smart contract, that should interact with another smart contract, such as USDT and BUSD.
I use a hardhat environment and her local environment, not a testnet.
For testing those interactions I must copy needed smart contracts locally, or I can just extend safeERC20 with name USDT and BUSD accordingly?
Jan 28, 2022, 12:33 PM
Create a Mock of USDT, BUSD
Or if you want, you can fork mainnet data to interact with the exact contract in the real world (locally)
Jan 28, 2022, 12:34 PM
Can you give me some examples for it?
Jan 28, 2022, 12:41 PM
Yeah sure
Open PM if you want
Jan 28, 2022, 12:42 PM
Thank you! PM in the telegram? Or what kind of PM?
Jan 28, 2022, 12:43 PM
Telegram
Jan 28, 2022, 12:43 PM
Thank you for your help!
Jan 28, 2022, 12:50 PM
Pleasure to have helped you
BigNumber.from~
Jan 28, 2022, 12:52 PM