Skip to content

Commit

Permalink
fix: reverts transaction body changes
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kantor <[email protected]>
  • Loading branch information
kantorcodes committed Nov 5, 2024
1 parent b3600fd commit 811d58e
Showing 1 changed file with 3 additions and 3 deletions.
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)

Check warning on line 107 in src/lib/shared/utils.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 107 in src/lib/shared/utils.ts

View check run for this annotation

Codecov / codecov/patch

src/lib/shared/utils.ts#L107

Added line #L107 was not covered by tests
}

export function transactionBodyToBase64String(transactionBody: Uint8Array) {
return Uint8ArrayToBase64String(transactionBody)
export function transactionBodyToBase64String(transactionBody: proto.ITransactionBody) {

Check warning on line 110 in src/lib/shared/utils.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 110 in src/lib/shared/utils.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🕹️ Function is not covered

Warning! Not covered function
return Uint8ArrayToBase64String(proto.TransactionBody.encode(transactionBody).finish())

Check warning on line 111 in src/lib/shared/utils.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 111 in src/lib/shared/utils.ts

View check run for this annotation

Codecov / codecov/patch

src/lib/shared/utils.ts#L110-L111

Added lines #L110 - L111 were not covered by tests
}

/**
Expand Down

0 comments on commit 811d58e

Please sign in to comment.