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'); }