Skip to content

Commit e6f1dad

Browse files
committed
fix: update createMemo calls to match 5-argument signature
1 parent cf9a874 commit e6f1dad

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/acpClient.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,7 @@ class AcpClient {
666666
payloads.push(
667667
this.acpContractClient.createMemo(
668668
jobId,
669-
memoPayload,
670-
MemoType.MESSAGE,
671-
content,
669+
isPrivate ? content : memoPayload,
672670
isPrivate ? MemoType.OBJECT_URL : MemoType.MESSAGE,
673671
true,
674672
AcpJobPhases.NEGOTIATION

src/acpJobOffering.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class AcpJobOffering {
294294
}
295295
}
296296

297-
let content = JSON.stringify(finalServiceRequirement);
297+
let content = JSON.stringify(serviceRequirement);
298298

299299
if (this.isPrivate) {
300300
const memoContent = await this.acpClient.createMemoContent(
@@ -308,9 +308,7 @@ class AcpJobOffering {
308308
payloads.push(
309309
this.acpContractClient.createMemo(
310310
jobId,
311-
JSON.stringify(serviceRequirement),
312-
MemoType.MESSAGE,
313-
content,
311+
this.isPrivate ? content : JSON.stringify(serviceRequirement),
314312
this.isPrivate ? MemoType.OBJECT_URL : MemoType.MESSAGE,
315313
true,
316314
AcpJobPhases.NEGOTIATION,

0 commit comments

Comments
 (0)