You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tokens that already have been initialised with brownie.interface.ERC20 do not have the mint attribute:
AttributeError: Contract 'ERC20' object has no attribute 'mint'
How can it be fixed?
instead of simply inheriting Contract, i think the MintableForkToken class should use a custom, hardcoded interface which extends brownie.interface.ERC20 with the necessary functions:
mint
updateGlobalPoolContract
createTokens
changeMaxSupply
issue
configureMinter
The text was updated successfully, but these errors were encountered:
Environment information
brownie
Version: 1.17.0brownie-token-tester
Version: 0.3.2ganache-cli
Version: 6.12.2What was wrong?
tokens that already have been initialised with
brownie.interface.ERC20
do not have themint
attribute:How can it be fixed?
instead of simply inheriting
Contract
, i think theMintableForkToken
class should use a custom, hardcoded interface which extendsbrownie.interface.ERC20
with the necessary functions:mint
updateGlobalPoolContract
createTokens
changeMaxSupply
issue
configureMinter
The text was updated successfully, but these errors were encountered: