Skip to content

Commit

Permalink
Atomic Swap Example
Browse files Browse the repository at this point in the history
  • Loading branch information
nhenin committed Dec 15, 2023
1 parent b3378c5 commit 36f5e64
Show file tree
Hide file tree
Showing 9 changed files with 453 additions and 124 deletions.
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

0 comments on commit 36f5e64

Please sign in to comment.