From ef10873f2bf2fb8a1345a9e9b1f4c2c0ec6bc253 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Fri, 3 Nov 2023 10:33:44 +0100 Subject: [PATCH] fix: client --- packages/filecoin-client/src/aggregator.js | 2 ++ packages/filecoin-client/src/dealer.js | 2 ++ packages/filecoin-client/src/storefront.js | 3 +++ packages/filecoin-client/test/aggregator.test.js | 1 + packages/filecoin-client/test/dealer.test.js | 1 + packages/filecoin-client/test/storefront.test.js | 2 ++ 6 files changed, 11 insertions(+) diff --git a/packages/filecoin-client/src/aggregator.js b/packages/filecoin-client/src/aggregator.js index d702dddf3..5691d8299 100644 --- a/packages/filecoin-client/src/aggregator.js +++ b/packages/filecoin-client/src/aggregator.js @@ -56,6 +56,7 @@ export async function pieceOffer( group, }, proofs, + expiration: Infinity, }) return await invocation.execute(conn) @@ -101,6 +102,7 @@ export async function pieceAccept( group, }, proofs, + expiration: Infinity, }) return await invocation.execute(conn) diff --git a/packages/filecoin-client/src/dealer.js b/packages/filecoin-client/src/dealer.js index 1c6919a8c..3eaa8a7b4 100644 --- a/packages/filecoin-client/src/dealer.js +++ b/packages/filecoin-client/src/dealer.js @@ -58,6 +58,7 @@ export async function aggregateOffer( pieces: block.cid, }, proofs, + expiration: Infinity, }) invocation.attach(block) @@ -103,6 +104,7 @@ export async function aggregateAccept( pieces, }, proofs, + expiration: Infinity, }) return await invocation.execute(conn) diff --git a/packages/filecoin-client/src/storefront.js b/packages/filecoin-client/src/storefront.js index 7eed402d8..917f11b2a 100644 --- a/packages/filecoin-client/src/storefront.js +++ b/packages/filecoin-client/src/storefront.js @@ -54,6 +54,7 @@ export async function filecoinOffer( piece, }, proofs, + expiration: Infinity, }) return await invocation.execute(conn) @@ -97,6 +98,7 @@ export async function filecoinSubmit( piece, }, proofs, + expiration: Infinity, }) return await invocation.execute(conn) @@ -140,6 +142,7 @@ export async function filecoinAccept( piece, }, proofs, + expiration: Infinity, }) return await invocation.execute(conn) diff --git a/packages/filecoin-client/test/aggregator.test.js b/packages/filecoin-client/test/aggregator.test.js index c76c31097..11dbbbde8 100644 --- a/packages/filecoin-client/test/aggregator.test.js +++ b/packages/filecoin-client/test/aggregator.test.js @@ -48,6 +48,7 @@ describe('aggregator', () => { nb: { ...invCap.nb, }, + expiration: Infinity, }) .delegate() diff --git a/packages/filecoin-client/test/dealer.test.js b/packages/filecoin-client/test/dealer.test.js index dc809fdfa..415b0665d 100644 --- a/packages/filecoin-client/test/dealer.test.js +++ b/packages/filecoin-client/test/dealer.test.js @@ -52,6 +52,7 @@ describe('dealer', () => { audience: context.id, with: context.id.did(), nb: invCap.nb, + expiration: Infinity, }) .delegate() diff --git a/packages/filecoin-client/test/storefront.test.js b/packages/filecoin-client/test/storefront.test.js index 0fdcdabf9..acb00d235 100644 --- a/packages/filecoin-client/test/storefront.test.js +++ b/packages/filecoin-client/test/storefront.test.js @@ -49,6 +49,7 @@ describe('storefront', () => { audience: context.id, with: context.id.did(), nb: invCap.nb, + expiration: Infinity, }) .delegate() @@ -58,6 +59,7 @@ describe('storefront', () => { audience: context.id, with: context.id.did(), nb: invCap.nb, + expiration: Infinity, }) .delegate()