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

We need to field fingerprint in token schema #442

Closed
andrehuynh96 opened this issue Mar 8, 2021 · 5 comments
Closed

We need to field fingerprint in token schema #442

andrehuynh96 opened this issue Mar 8, 2021 · 5 comments

Comments

@andrehuynh96
Copy link

andrehuynh96 commented Mar 8, 2021

Cardano native token need field fingerprint in token schema unique asset, we can't be distinguished by assetId

assetId | String!
assetName | String!
policyId | Hash28Hex!
fingerprint | String! (asset1xxx) please
quantity | String!
transactionOutput | TransactionOutput
@SebastienGllmt
Copy link

Although this is possibly just a temporary workaround for your issue, you can use https://www.npmjs.com/package/@emurgo/cip14-js to generate the fingerprint yourself.

@andrehuynh96
Copy link
Author

andrehuynh96 commented Mar 8, 2021

SebastienGllmt your package can't implement with error
AssetFingerprint is not a constructor

@SebastienGllmt
Copy link

Sounds like probably you didn't import the package properly and so AssetFingerprint is set to undefined

@andrehuynh96
Copy link
Author

andrehuynh96 commented Mar 8, 2021

I resolved it, you was define constructor in a default property of object
const AssetFingerprint = require('@emurgo/cip14-js').default;

@rhyslbw
Copy link
Contributor

rhyslbw commented Mar 8, 2021

It's been implemented in #437, so will be included in the next release

@rhyslbw rhyslbw closed this as completed Mar 8, 2021
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

3 participants