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

SCALE decoding of Compact<u32> wrong #13

Open
brenzi opened this issue Mar 28, 2024 · 1 comment
Open

SCALE decoding of Compact<u32> wrong #13

brenzi opened this issue Mar 28, 2024 · 1 comment

Comments

@brenzi
Copy link

brenzi commented Mar 28, 2024

Along https://docs.substrate.io/reference/scale-codec/#fn-1

Compact encoded as 0x1501

should be decoded as decimal 69

but if I use this https://www.shawntabrizi.com/substrate-js-utilities/codec/
with

[
  {
    "nonce": "Compact<u32>"
  }
]

I get
5377

@shawntabrizi
Copy link
Owner

@brenzi don't have an answer to this one. If you look at my code, I am just funneling the input to Polkadot JS.

It seems it is not registering the compact stuff correctly.

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