Hi, Ive been working on a piggy bank contract that takes eth, buys tokens at certain eth balances and transfers tokens to a wallet when token balance is => then x balance.
Im very much a noob but im wondering how to test it.
I could test it on bsc for economic reasons but not sure how. Do i just change the router address?

Oct 15, 2023, 4:12 PM
Depends on the code.
If the contract does an external call to a BSC contract, you need that contract on a testnet (with the same interface at least).
As long as the chain is EVM, only statez and something minor changes
You can use forks to avoid touching testnets and deal with faucets/low ETH
Oct 15, 2023, 6:55 PM
If you need testnets tokens try these:
https://moralis.io/faucets/
https://faucet.paradigm.xyz/
https://github.com/arddluma/awesome-list-testnet-faucets
https://cointool.app/tools/faucets
Oct 15, 2023, 6:55 PM
How do i go at doing that? Where can i find more info on that?
Oct 15, 2023, 7:03 PM
choose
1) HardHat - JS
2) Foundry - solidity
Oct 15, 2023, 7:04 PM
Thanks, ill be looking into those. 👍🏻
Oct 15, 2023, 7:22 PM
Whats your opinion on Truffle?
Oct 15, 2023, 7:39 PM
i've used it only for verification, my first framework was hardhat.
Now Truffle is discontinued, there's https://www.apeworx.io/ that may be the next evolution of python+web3
Oct 15, 2023, 7:52 PM
Discontinued? Seriously? I continue use that for deployment, maybe I need to switch.
Oct 15, 2023, 7:52 PM
not really needed as it will continue to work for you, but no more updates or support
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat
Oct 15, 2023, 7:53 PM

© 2024 Draquery.com All rights reserved.