Skip to content

Commit

Permalink
fix: bond esdtnft
Browse files Browse the repository at this point in the history
  • Loading branch information
damienen committed Apr 29, 2024
1 parent 307d8fc commit f61dd33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1046,13 +1046,14 @@ export class BondContract extends Contract {
.addArg(new TokenIdentifierValue(payment.tokenIdentifier))
.addArg(new U64Value(payment.nonce))
.addArg(new BigUIntValue(payment.amount))
.addArg(new AddressValue(this.contract.getAddress()))
.setFunction('bond')
.addArg(new AddressValue(originalCaller))
.addArg(new TokenIdentifierValue(tokenIdentifier))
.addArg(new U64Value(nonce))
.addArg(new U64Value(lockPeriod))
.build(),
receiver: this.contract.getAddress(),
receiver: senderAddress,
sender: senderAddress,
gasLimit: 40_000_000,
chainID: this.chainID
Expand Down Expand Up @@ -1196,13 +1197,14 @@ export class BondContract extends Contract {
.addArg(new TokenIdentifierValue(payment.tokenIdentifier))
.addArg(new U64Value(payment.nonce))
.addArg(new BigUIntValue(payment.amount))
.addArg(new AddressValue(this.contract.getAddress()))
.addArg(new StringValue('proof'))
.build();

const proofTx = new Transaction({
value: 0,
data,
receiver: this.contract.getAddress(),
receiver: senderAddress,
sender: senderAddress,
gasLimit: 40_000_000,
chainID: this.chainID
Expand Down

0 comments on commit f61dd33

Please sign in to comment.