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

Use script.LocalValue for arguments and this #477

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

jrandolf-2
Copy link
Contributor

@jrandolf-2 jrandolf-2 commented Jul 6, 2023

According to the steps, script.LocalValue must include script.RemoteReference and script.ChannelValue. A priori, there is no purpose in script.ArgumentValue


Preview | Diff

index.bs Show resolved Hide resolved
Copy link
Member

@thiagowfx thiagowfx left a comment

Choose a reason for hiding this comment

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

Approving, but please wait for review from Mozilla just to double check it's correct.

Copy link
Member

@jgraham jgraham left a comment

Choose a reason for hiding this comment

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

I think this is OK. The main change seems to be that we allow clients to send maps with channels or remote values as arguments.

The description of script.LocalValue needs to be updated to match the change.

I think adding all these types to local-cddl is wrong; I don't think clients ever have to parse these values.

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
@jrandolf-2
Copy link
Contributor Author

I think adding all these types to local-cddl is wrong; I don't think clients ever have to parse these values.

Sure, but CDDL complains about unknown types if you don't include it because LocalValue references it and LocalValue exists in local-cddl.

According to the steps, `script.LocalValue` must include `script.RemoteReference` and `script.ChannelValue`. A priori, there is no purpose in `script.ArgumentValue`
@jrandolf-2
Copy link
Contributor Author

As discussed offline, the solution is to just make script.LocalValue only defined in remote.cddl.

@jgraham jgraham merged commit 436177e into master Jul 11, 2023
3 checks passed
@jgraham jgraham deleted the jrandolf/use-local-value branch July 11, 2023 08:08
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.

3 participants