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

parseTxPacket returns a promise #9921

Closed
wants to merge 2 commits into from

Conversation

0xpatrickdev
Copy link
Member

refs: #9449

Description

  • refactor parseTxPacket to return a rejected promise instead of a synchronous error in the event of an error. Since parseTxPacket is currently used in conjunction with a series of vows/promises, it seems best to be consistent. This change was not motivated by observed uncaught errors.
  • feat: ensure IcqConnection.query() returns a vow

Security Considerations

n/a

Scaling Considerations

n/a

Documentation Considerations

n/a

Testing Considerations

n/a

Upgrade Considerations

vat-orchestration is currently unreleased

@0xpatrickdev
Copy link
Member Author

Closing as the first commit doesn't add much. Watcher methods (onFulfilled) are already in a Vow resolution context, so returning any sort of value (Vow, Promise, primitive) or throwing an Error will safely be coerced to a Vow,

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.

1 participant