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

chore: correct declaration of userSeat.getPayout(); cascade fixes #10738

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Chris-Hibbert
Copy link
Contributor

closes: #8610

Description

Improve declaration for E(userSeat).getPayout()'s return value. A few assertions were added where the type needed to be narrowed. If the types weren't correct, the called code would have thrown anyway.

Security Considerations

No impact

Scaling Considerations

Not relevant

Documentation Considerations

Mostly documentation. The generated docs will be updated automatically. I'll create a separate PR to update the manual docs.

Testing Considerations

Tests unaffected.

Upgrade Considerations

No relevance/

Copy link

cloudflare-workers-and-pages bot commented Jan 3, 2025

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: a8c4ad5
Status: ✅  Deploy successful!
Preview URL: https://2cae7ae5.agoric-sdk.pages.dev
Branch Preview URL: https://8610-getpayout-type.agoric-sdk.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hygiene Tidying up around the house Zoe package: Zoe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E(userSeat).getPayout('NoSuchKeyword') result violates documented types
1 participant