From 2cfd9a6028c83e4457ca501c00b4529b2a772ab8 Mon Sep 17 00:00:00 2001 From: Bucur David Date: Tue, 23 Apr 2024 17:06:58 +0300 Subject: [PATCH] fix: blacklist payload builder --- src/bond.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bond.ts b/src/bond.ts index 5d3f477..7059568 100644 --- a/src/bond.ts +++ b/src/bond.ts @@ -720,8 +720,7 @@ export class BondContract extends Contract { value: 0, data: new ContractCallPayloadBuilder() .setFunction('setBlacklist') - .addArg(new U64Value(compensationId)) - .setArgs(inputAddresses) + .setArgs([new U64Value(compensationId), ...inputAddresses]) .build(), receiver: this.contract.getAddress(), sender: senderAddress, @@ -749,8 +748,7 @@ export class BondContract extends Contract { value: 0, data: new ContractCallPayloadBuilder() .setFunction('removeBlacklist') - .addArg(new U64Value(compensationId)) - .setArgs(toBeRemovedAddresses) + .setArgs([new U64Value(compensationId), ...toBeRemovedAddresses]) .build(), receiver: this.contract.getAddress(), sender: senderAddress,