diff --git a/packages/client/src/transactions/sign_and_send.ts b/packages/client/src/transactions/sign_and_send.ts index c555d3f6f..76629d3b5 100644 --- a/packages/client/src/transactions/sign_and_send.ts +++ b/packages/client/src/transactions/sign_and_send.ts @@ -15,7 +15,7 @@ const DEFAULT_FINALITY: BlockReference = { finality: 'final' }; * @param signer MessageSigner */ export async function signTransaction({ transaction, deps: { signer } }: SignTransactionParams) { - const encodedTx = transaction.encode(); + const encodedTx = new Uint8Array(sha256(transaction.encode())); const signedTransaction = new SignedTransaction({ transaction, signature: new Signature({ @@ -25,7 +25,7 @@ export async function signTransaction({ transaction, deps: { signer } }: SignTra }); return { - encodedTransactionHash: new Uint8Array(sha256(encodedTx)), + encodedTransactionHash: encodedTx, signedTransaction, }; }