stove-labs / mip-token-standard

Apache License 2.0
2 stars 2 forks source link

Mint, burn, setTotalSupply, setPaused, etc should not add to token.ts as standard rather added them to extensions #3

Closed iam-dev closed 1 year ago

iam-dev commented 1 year ago

It is recommended not to add the functions Mint, Burn, setTotalSupply, and setPaused to the token.ts file. Instead, these functions should be added as an extension, as shown in the OpenZeppelin ERC20Burnable.sol and ERC20Pausable.sol contracts, which can be found in the following links:

maht0rz commented 1 year ago

Inheritance with snarkyjs is currently rather difficult, please move your feedback to the main thread in #2, thanks!