From 4d8c42d0c36ca4b406c84182f4c76c1fdc5c2360 Mon Sep 17 00:00:00 2001 From: chmanie Date: Mon, 17 Apr 2023 11:29:45 +0200 Subject: [PATCH] Fix recepient length check in `pay` method --- src/ColonyNetwork/OneTxPayment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ColonyNetwork/OneTxPayment.ts b/src/ColonyNetwork/OneTxPayment.ts index 1a870b7b..c7d5355a 100644 --- a/src/ColonyNetwork/OneTxPayment.ts +++ b/src/ColonyNetwork/OneTxPayment.ts @@ -128,7 +128,7 @@ export class OneTxPayment { : Array(setReceipient.length).fill(colonyClient.tokenClient.address); const setAmount = ([] as BigNumberish[]).concat(amount); - if (recipient.length !== setAmount.length) { + if (setReceipient.length !== setAmount.length) { throw new Error('recipient and amount arrays need to have the same size'); }