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

Fix TokenIdentifier encode/decode bug #7 #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

witter-deland
Copy link

Remove 8 bit index length data from TokenIdentifier

@witter-deland
Copy link
Author

PR for #7
Feel free to merge/reject this PR

@stephenandrews
Copy link
Contributor

Thanks - we had fixed this offline, will look it over and merge. Cheers

@dpori
Copy link

dpori commented Sep 29, 2021

@varik1770 @stephenandrews would you be able to provider a snippet on how to convert Principal and tokenIndex to TokenIdentifier it seems the functions have been commented 😬

I always have a

The Replica returned an error: code 4, message: "IC0503: Canister r7inp-6aaaa-aaaaa-aaabq-cai trapped explicitly: RTS error: blob_of_principal: invalid principal"

@pipepi
Copy link

pipepi commented Dec 22, 2021

@varik1770 @stephenandrews would you be able to provider a snippet on how to convert Principal and tokenIndex to TokenIdentifier it seems the functions have been commented 😬

I always have a

The Replica returned an error: code 4, message: "IC0503: Canister r7inp-6aaaa-aaaaa-aaabq-cai trapped explicitly: RTS error: blob_of_principal: invalid principal"

I had the same problem,anyone can help me?

@wyattbenno777
Copy link

wyattbenno777 commented Jan 12, 2022

One example of how a tokenIdentifier is made -> https://github.com/jorgenbuilder/ext-helpers/blob/main/tokenid.js
@pipepi @dpori

@MCLYang
Copy link

MCLYang commented Jun 3, 2022

@stephenandrews it would be great if you can provide a snippet to show how to encode TokenIdentifier? I went through the repo but I did not find it. Or plz point me out where is it ?

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

Successfully merging this pull request may close these issues.

6 participants