From 889dcb67796c852616d17db22c6e20aa4e9ce3b5 Mon Sep 17 00:00:00 2001 From: Kyle Peacock Date: Tue, 23 Jul 2024 15:06:23 -0700 Subject: [PATCH] fix: passing request correctly during pollForResponse Processing status --- docs/CHANGELOG.md | 2 ++ packages/agent/src/polling/index.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 48f2a12f..c5611979 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -6,6 +6,8 @@ ### Changed +- fix: passing `request` correctly during pollForResponse `Processing` status + - credit: [Senior Joinu](https://forum.dfinity.org/t/timestamp-failed-to-pass-the-watermark-after-retrying-the-configured-3-times/29180/11?) - ci: removing headless browser tests pending a rewrite - ci: changing token for creating release diff --git a/packages/agent/src/polling/index.ts b/packages/agent/src/polling/index.ts index e50c4f7e..2a18bc26 100644 --- a/packages/agent/src/polling/index.ts +++ b/packages/agent/src/polling/index.ts @@ -68,7 +68,7 @@ export async function pollForResponse( case RequestStatusResponseStatus.Processing: // Execute the polling strategy, then retry. await strategy(canisterId, requestId, status); - return pollForResponse(agent, canisterId, requestId, strategy, currentRequest); + return pollForResponse(agent, canisterId, requestId, strategy, currentRequest, blsVerify); case RequestStatusResponseStatus.Rejected: { const rejectCode = new Uint8Array(