Describe the bug
All mint-related functions expect a paymeValut which is in standard @FungibleToken.Vault inteface.
|
pub fun mintDappy(templateID: UInt32, paymentVault: @FungibleToken.Vault): @Dappy { |
It should strictly define the Vault type e.g @FUSD.Valut otherwise anyone can deploy a FungibleToken and mint Dappies.
To Reproduce
Steps to reproduce the behaviour:
- Deploy a FakeUSD contract and mint to self
- Create Transaction and pass
&FakeUSD.Vault resource as payment to mintDappy
- The current CrpytoDappy contract will still allow the minting
Describe the bug
All mint-related functions expect a paymeValut which is in standard @FungibleToken.Vault inteface.
crypto-dappy/cadence/contracts/DappyContract.cdc
Line 211 in 9ad2d82
It should strictly define the Vault type e.g
@FUSD.Valutotherwise anyone can deploy a FungibleToken and mint Dappies.To Reproduce
Steps to reproduce the behaviour:
&FakeUSD.Vaultresource as payment to mintDappy