Skip to content

Commit

Permalink
used methodsObject() instead of the deprecated methods()
Browse files Browse the repository at this point in the history
  • Loading branch information
dsawali committed Jul 8, 2024
1 parent dc9fafc commit 2669ff2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ CONFIGS().forEach(({ lib, rpc, setup, createAddress }) => {
ticketToken = { ticketer: ticketSendContract.address, content_type: { prim: 'string' }, content: { string: 'Ticket' } };

// Send 3 tickets from the originated contract to sender
const sendTickets = await ticketSendContract.methods.default(senderPkh, '3').send();
const sendTickets = await ticketSendContract.methodsObject.default([senderPkh, '3']).send()
await sendTickets.confirmation();

} catch (error) {
console.log(error);
}
Expand All @@ -63,7 +64,6 @@ CONFIGS().forEach(({ lib, rpc, setup, createAddress }) => {
await transferTicketOp.confirmation();

expect(await transferTicketOp.status()).toEqual('applied');
console.log(`opHash: ${transferTicketOp.opHash}`);

// Check balances after transferring tickets
const balanceAfter = await client.getTicketBalance(recipientPkh, ticketToken);
Expand Down

0 comments on commit 2669ff2

Please sign in to comment.