-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
The names of these recently added functions:
has_any_nft(self: Value, policy: PolicyId) -> Bool
has_any_nft_strict(self: Value, policy: PolicyId) -> Bool
has_nft(self: Value, policy: PolicyId, asset_name: AssetName) -> Bool
has_nft_strict(self: Value, policy: PolicyId, asset_name: AssetName) -> BoolImplicitly assume tokens that are unique at the UTxO level are also unique at the blockchain level.
This could be problematic or confusing for inexperienced Cardano developers and for experienced devs who could use it to check for fungible tokens that should be unique per UTxO.
Would it be ok to rename them to something like this (and update the docs)?:
has_any_unique(self: Value, policy: PolicyId) -> Bool
has_any_unique_strict(self: Value, policy: PolicyId) -> Bool
has_unique(self: Value, policy: PolicyId, asset_name: AssetName) -> Bool
has_unique_strict(self: Value, policy: PolicyId, asset_name: AssetName) -> BoolReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels