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

client-sdk: decode the result of native trusted operations #3169

Merged
merged 5 commits into from
Nov 7, 2024

Conversation

jonalvarezz
Copy link
Contributor

@jonalvarezz jonalvarezz commented Nov 7, 2024

as topic

client follow-up of #3155 now that the native responses include results.

Published packages

Copy link

linear bot commented Nov 7, 2024

response: enclaveResult,
response,
extrinsicHash: extrinsic_hash.toString(),
blockHash: block_hash.toString(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The block_hash is an Option, would this work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't throw, if that's what you mean.

It'd either be: the hex value, empty strings, or 0x0000...

but for these methods, blockHash should always be there, right? since we are watching until InBlock?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we are waiting until the is Finalized

@jonalvarezz jonalvarezz merged commit 0fd2f74 into dev Nov 7, 2024
21 checks passed
@jonalvarezz jonalvarezz deleted the p-1126-client-sdk-decode-resultsz branch November 7, 2024 13:38
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