From 2f3cdb64bf3b6ae899e688f05188e25446922ecd Mon Sep 17 00:00:00 2001 From: "Ioannis T." Date: Fri, 6 Dec 2024 13:51:07 +0100 Subject: [PATCH] refactor: format receivers when setting streams --- src/lib/utils/streams/streams.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/utils/streams/streams.ts b/src/lib/utils/streams/streams.ts index 515421a63..3af481a87 100644 --- a/src/lib/utils/streams/streams.ts +++ b/src/lib/utils/streams/streams.ts @@ -353,9 +353,9 @@ export async function buildPauseStreamPopulatedTx(streamId: string) { functionName: 'setStreams', args: [ tokenAddress as OxString, - currentReceivers, + formatStreamReceivers(currentReceivers), 0n, - newReceivers, + formatStreamReceivers(newReceivers), 0, 0, extractAddressFromAccountId(ownAccountId), @@ -392,9 +392,9 @@ export async function buildUnpauseStreamPopulatedTx(streamId: string) { functionName: 'setStreams', args: [ tokenAddress as OxString, - currentReceivers, + formatStreamReceivers(currentReceivers), 0n, - newReceivers, + formatStreamReceivers(newReceivers), 0, 0, extractAddressFromAccountId(ownAccountId), @@ -477,9 +477,9 @@ export async function buildEditStreamBatch( functionName: 'setStreams', args: [ tokenAddress as OxString, - currentReceivers, + formatStreamReceivers(currentReceivers), 0n, - newReceivers, + formatStreamReceivers(newReceivers), 0, 0, extractAddressFromAccountId(ownAccountId),