Hey guys
My contract have to be interaction with other defi contract.
So I must use mainnet to test my contract and gas fee is so expensive. Is there any other framework that I can test on testnet like as Mocha framework?
If you know, please recommend one

Sep 27, 2022, 3:38 PM
You could fork the mainnet using hardhat and test locally

https://hardhat.org/hardhat-network/docs/guides/forking-other-networks
Fully e2e onchain multichain testing is not possible anyway, so one might consider running 2 forked nets locally in combination with some autotask
Sep 27, 2022, 4:16 PM
Can we use ERC20SafeUpgradeable in fork?
Sep 27, 2022, 4:19 PM
Can't see why not
Sep 27, 2022, 4:21 PM
If you rely on some external services (e.g. multichain/anyswap) they support a bunch of testnets you can use
Sep 27, 2022, 4:24 PM
And if the third party contract works with backend the forking will not working. Is there any way to test in this case as well?
Sep 27, 2022, 4:26 PM
If they have stuff running offchain that react to stuff happening on the chain they just react to the chain they are configured to work with not with forks of it
Sep 27, 2022, 4:27 PM
If it is not multichain/anyswap with its contracts on testnets like Niccolo said, then can't see a way to do that
Sep 27, 2022, 4:28 PM
Okay, thanks guys
Sep 27, 2022, 4:34 PM

© 2024 Draquery.com All rights reserved.