Skip to content

Commit

Permalink
Fixed signing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
StarGachinum committed Dec 28, 2024
1 parent c49fd67 commit c802776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/transactions/sign_and_send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.sha256.array(transaction.encode()));
const signedTransaction = new SignedTransaction({
transaction,
signature: new Signature({
Expand Down

0 comments on commit c802776

Please sign in to comment.