From d72d973238b25cd4f561d77464cd658899f11ac1 Mon Sep 17 00:00:00 2001 From: xiaoch05 Date: Wed, 18 Dec 2024 14:24:42 +0800 Subject: [PATCH] bugfix: propose safe transaction --- src/base/safewallet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/safewallet.ts b/src/base/safewallet.ts index bcd2cd7..242c157 100644 --- a/src/base/safewallet.ts +++ b/src/base/safewallet.ts @@ -68,13 +68,13 @@ export class SafeWallet { const readyExecute = signedTransaction.signatures.size >= this.threshold; if (signedTransaction.signatures.size < this.threshold) { try { - const signature = tx.getSignature(this.wallet.address) as EthSafeSignature; + const senderSignature = await this.safeSdk.signHash(txHash) await this.safeService.proposeTransaction({ safeAddress: this.address, safeTransactionData: tx.data, safeTxHash: txHash, senderAddress: this.wallet.address, - senderSignature: buildSignatureBytes([signature]) + senderSignature: senderSignature.data, }); this.logger.log( `finish to propose transaction ${txHash} using ${this.safeService.name} on chain ${chainId}`