Skip to content

Commit

Permalink
fix: blacklist payload builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bucurdavid committed Apr 23, 2024
1 parent 6cd93e0 commit 2cfd9a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2cfd9a6

Please sign in to comment.