-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
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.Vaultresource as payment to mintDappy - The current CrpytoDappy contract will still allow the minting
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels