Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify hashString() #57

Open
rheaplex opened this issue Sep 29, 2021 · 1 comment
Open

Simplify hashString() #57

rheaplex opened this issue Sep 29, 2021 · 1 comment

Comments

@rheaplex
Copy link

https://github.com/flow-hydraulics/flow-pds/blob/main/cadence-contracts/PDS.cdc#L21

You can get a simpler identifier using self.getType().identifier:

self.getType().identifier.concat(".").concat(self.id.toString())

-> A.0000000000000001.HelloWorld.01

or a much simpler (but much less meaningful) unique identifier using self.uuid :

self.uuid

-> 56343473567356

@whalelephant
Copy link
Contributor

Hi @rheaplex,
This function constructs the hashString for verification of the commitHash from input from the backend server.
The type Collectible is a representation of the input strings only, it is not actually a NFT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants