From da176daa8489bdc9f6479cb18efae18da14e3bf0 Mon Sep 17 00:00:00 2001 From: Christophe Le Bars Date: Fri, 21 Apr 2023 18:31:32 +0200 Subject: [PATCH] ethers v6 draft --- lib/rouge.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rouge.mjs b/lib/rouge.mjs index 4383463..953213c 100644 --- a/lib/rouge.mjs +++ b/lib/rouge.mjs @@ -168,7 +168,7 @@ export const abiEncodeAcquire = async ({ channels, signer, secret, contract, acq } // or Type = 'Native' if (channels && channels[channelId] && channels[channelId]?.amount?.token?._isNative) { - nativeTotal = nativeTotal.add(channels[channelId].amount.valueOf().mul(qty)) + nativeTotal = nativeTotal + channels[channelId].amount.number * BigInt(qty) } return [ channelId, qty, salt, stamps ] }