Skip to content

Commit

Permalink
fix: revert transactionbody code
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kantor <[email protected]>
  • Loading branch information
kantorcodes committed Nov 4, 2024
1 parent c5541ce commit 5ba384b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/lib/dapp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,9 @@ export class DAppConnector {
throw new Error('There is no active session. Connect to the wallet at first.')
}

this.logger.debug(`Using signer: ${signer.getAccountId().toString()} - about to request.`)
this.logger.debug(
`Using signer: ${signer.getAccountId().toString()}: ${signer.topic} - about to request.`,
)

return await signer.request({
method: method,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ export function transactionToTransactionBody<T extends Transaction>(
) {
// This is a private function, though provides the capabilities to construct a proto.TransactionBody
//@ts-ignore
return transaction._signedTransactions.current.bodyBytes
return transaction._makeTransactionBody(nodeAccountId)
}

export function transactionBodyToBase64String(transactionBody: Uint8Array) {
return Uint8ArrayToBase64String(transactionBody)
export function transactionBodyToBase64String(transactionBody: proto.ITransactionBody) {
return Uint8ArrayToBase64String(proto.TransactionBody.encode(transactionBody).finish())
}

/**
Expand Down

0 comments on commit 5ba384b

Please sign in to comment.