Skip to content

Commit

Permalink
Merge pull request #5069 from BitGo/sc-372-add-logging-for-single-nom
Browse files Browse the repository at this point in the history
fix(sdk-coin-ton): add logging for single nom (Ticket: SC-372)
  • Loading branch information
quarterdill authored Oct 27, 2024
2 parents 3c01812 + 9093440 commit 85f39c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/sdk-coin-ton/src/lib/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ export class Transaction extends BaseTransaction {
// payload is a withdraw txn message
const queryId = payload.substring(8, 24);
const withdrawAmount = payload.substring(24);
/* eslint-disable-next-line no-console */
console.log(`payload: ${payload}, queryId: ${queryId}, withdrawAmount: ${withdrawAmount}`);
payloadCell.bits.writeUint(parseInt(WITHDRAW_OPCODE, 16), 32);
payloadCell.bits.writeUint(parseInt(queryId, 16), 64);
payloadCell.bits.writeCoins(new BN(withdrawAmount));
Expand Down

0 comments on commit 85f39c4

Please sign in to comment.