Skip to content

Comments

Fix TokenIdentifier encode/decode bug #7#8

Open
witter-s wants to merge 1 commit intoToniq-Labs:mainfrom
witter-s:main
Open

Fix TokenIdentifier encode/decode bug #7#8
witter-s wants to merge 1 commit intoToniq-Labs:mainfrom
witter-s:main

Conversation

@witter-s
Copy link

@witter-s witter-s commented Sep 8, 2021

Remove 8 bit index length data from TokenIdentifier

@witter-s
Copy link
Author

witter-s commented Sep 8, 2021

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