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

PLT-8753 | Atomic Swap Contract in @marlowe.io/language-examples #131

Merged
merged 3 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog.d/20231215_173732_nicolas.henin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### @marlowe.io/language-examples

- enhanced swap contract (retract command, open role capabilities and `getState`) ([PR](https://github.com/input-output-hk/marlowe-ts-sdk/pull/131))
nhenin marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 3 additions & 3 deletions examples/survey-workshop/participant/contract.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { survey, verifySurvey } from "@marlowe.io/language-examples";
import { Survey } from "@marlowe.io/language-examples";
import * as H from "../../js/poc-helpers.js";
import { datetoTimeout, timeoutToDate } from "@marlowe.io/language-core-v1";

Expand Down Expand Up @@ -45,7 +45,7 @@ const expectedQuestions = [
];

export const mkWorkshopSurvey = (options) =>
survey({
Survey.survey({
surveyParticipant: options.surveyParticipant,
custodian: custodianParty,
questions: expectedQuestions,
Expand All @@ -55,7 +55,7 @@ export const mkWorkshopSurvey = (options) =>
});

export function verifySurveyContract(actual, optionalSurveyParticipant = null) {
const result = verifySurvey(expectedQuestions, actual);
const result = Survey.verifySurvey(expectedQuestions, actual);
let match = result.match;
if (!match) {
result.logs.forEach((entry) =>
Expand Down
Loading