[ETHEREUM-CONTRACTS] Add decimals as an option to deploy-test-token.js
#994
Labels
Project: PROTOCOL-EVMv1
Superfluid protocol EVM v1 implementation in Solidity
Size: S
Type: Testing
Testing cases or harness improvements
Projects
Summary
Currently our
deploy-test-token.js
script hardcodes the number of decimals to18
when deploying theTestToken
contract.However, @kasparkallas brought up a good point which is that there are many ERC20 tokens in the wild which are part of our resolver and prevalent in crypto (USDC) which have a different number of decimals.
Allowing the deployment of test token with a custom number of decimals is going to be useful for testing logic along the entire stack (contracts to client) and we should consider redeploying the fUSDC tokens in the testnets which won't be deprecated with the correct number of decimals (6) so we can properly test this logic internally as well as allowing external devs building on top of Superfluid to have a more realistic testing experience.
TODO
deploy-test-token.js
:TOKEN_DECIMALS
, if it is left empty, default to the standard 18The text was updated successfully, but these errors were encountered: