Is there any alternative way to test contracts that requires mainnet without having to pay insane gas like this?

Jan 10, 2022, 6:25 AM
lol why are you using mainnet
and that too ethereum mainnet, of course it's going to be expensive
Use rinkeby testnet if you can, but if you HAVE TO use a mainnet, then use polygon mainnet, that would be the cheapest
Jan 10, 2022, 7:48 AM
use tenderly and learn how to use hardhat or ganache to fork mainnet
tenderly is a dev tool suite, very OP and forking mainnet is done from the ganache-cli or a hardhat script depending on your hardhat setup
forking mainnet allows you access to any account on that blockchain, unlimited funds and unlimited capacity to test. rather than being restricted to only being able to test based on faucet emissions or charity testETH from other devs
Jan 10, 2022, 7:51 AM
PitterPatter hey
So if do a bytes32 => bool mapping, the default value of the boolean will be false?
Jan 10, 2022, 7:53 AM
yeah to my knowledge, as its a mapping it will be nulll until added to at which point you'd set the result of the bool, so technically yeah a standalone boolean is defaulted to false yeah
Jan 10, 2022, 7:55 AM
thanks
Jan 10, 2022, 7:55 AM
Is it open sourced?
Jan 10, 2022, 8:11 AM
oh alright
Jan 10, 2022, 10:26 AM

© 2024 Draquery.com All rights reserved.