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

Improve RPC client types for broadcastTransaction and isValidPublicAddress #5356

Merged
merged 3 commits into from
Sep 4, 2024

Conversation

dguenther
Copy link
Member

Summary

We call .waitForEnd() on broadcastTransaction and isValidPublicAddress, but we don't use the proper RpcResponseEnded type, so users of the client function have to check for null anyway. Also improved the handling of error responses from the broadcastTransaction RPC.

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

@dguenther dguenther requested a review from a team as a code owner September 4, 2024 20:13
@dguenther dguenther changed the title Tighten return types on RPC client Improve RPC client types for broadcastTransaction and isValidPublicAddress Sep 4, 2024
@dguenther dguenther merged commit 3e3b650 into staging Sep 4, 2024
10 checks passed
@dguenther dguenther deleted the tighten-rpc-types branch September 4, 2024 20:35
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