Skip to content

Conversation

@wuminzhe
Copy link

@wuminzhe wuminzhe commented Mar 23, 2021

Renew old PR #210

For example

For a storage that has a return type Option<Vec<u8>>, the storage data through RPC will returns:

  • 0x00 for Some([])
  • 0x080001 for Some([0, 1])

So, if subxt want to use the Option<Vec<u8>> to decode the returns, the hex should be changed to:

  • 0x00 to 0x0100
  • 0x080001 to 0x01080001

which is prefixed with a 01 for scale codec Some

Or, find a way to use Vec<u8> to decode.

@cla-bot-2021
Copy link

cla-bot-2021 bot commented May 11, 2021

User @wuminzhe, please sign the CLA here.

@hackfisher
Copy link

Related? #120

@wuminzhe
Copy link
Author

After reading the macro code, I feel this PR is not correct.

@wuminzhe wuminzhe closed this May 28, 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

Successfully merging this pull request may close these issues.

2 participants