Skip to content

fix(patterns): pass type parameter from interface guard to payload#1771

Merged
erights merged 1 commit intomasterfrom
markm-interface-guard-type-param
Sep 16, 2023
Merged

fix(patterns): pass type parameter from interface guard to payload#1771
erights merged 1 commit intomasterfrom
markm-interface-guard-type-param

Conversation

@erights
Copy link
Copy Markdown
Contributor

@erights erights commented Sep 16, 2023

The previous endo release added getInterfaceGuardPayload so that agoric-sdk could start to use it, rather than accessing the fields of an interface guard directly. This paves the way for #1712 . However, because the type of getInterfaceGuardPayload did not propagate the type parameter from the guard argument to the returned payload, the Agoric/agoric-sdk#8339 attempt to switch to it causes type errors due to the loss of this type information.

Copy link
Copy Markdown
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

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

Straightforward! Sorry for the omission.

@erights erights merged commit 1bfb9c4 into master Sep 16, 2023
@erights erights deleted the markm-interface-guard-type-param branch September 16, 2023 19:14
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