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

Add from_token feature to allow decoding to rust type. #2

Closed
tjsharp1 opened this issue Oct 30, 2021 · 0 comments · Fixed by #5
Closed

Add from_token feature to allow decoding to rust type. #2

tjsharp1 opened this issue Oct 30, 2021 · 0 comments · Fixed by #5
Assignees
Labels
enhancement New feature or request

Comments

@tjsharp1
Copy link
Contributor

For the WASM indexers, it will be useful to convert from an ABI-encoded byte blob back into the rust type defined in the contract.
Currently, we can go from a struct into ABI encoded bytes like this: my_struct.into_token(), the WASM indexers will also need to be able to do something like let struct = MyStruct::from_token(decoded_tokens).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants