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

Cleanup conversions in DAML script submit #3455

Merged
merged 2 commits into from
Nov 13, 2019
Merged

Conversation

cocreature
Copy link
Contributor

I’ll leave the other commands such as Query for a separate PR.
Part of this code can be shared with the DAML trigger runner but I’ll
also leave that for a separate PR

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Add a line to the release notes, if appropriate
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

I’ll leave the other commands such as Query for a separate PR.
Part of this code can be shared with the DAML trigger runner but I’ll
also leave that for a separate PR
@cocreature cocreature requested review from a user and aherrmann-da November 13, 2019 17:06
Copy link
Contributor

@hurryabit hurryabit left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you.

@@ -311,8 +215,7 @@ class Runner(dar: Dar[(PackageId, Package)], applicationId: ApplicationId) exten
}
case SVariant(_, "AllocParty", v) => {
v match {
case SRecord(_, _, vals) => {
assert(vals.size == 2)
case SRecord(_, _, vals) if vals.size == 2 => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the exception we might throw below contain that we expected 2 fields in the record too? Same above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, fixed.

@cocreature cocreature merged commit f469f1e into master Nov 13, 2019
@cocreature cocreature deleted the daml-script-conversion branch November 13, 2019 19:56
bame-da pushed a commit that referenced this pull request Nov 19, 2019
* Cleanup conversions in DAML script submit

I’ll leave the other commands such as Query for a separate PR.
Part of this code can be shared with the DAML trigger runner but I’ll
also leave that for a separate PR

* Address review comments
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