From 140af79576b7c6ae162ad2ddcb42525071b2205f Mon Sep 17 00:00:00 2001 From: twwu123 Date: Wed, 26 Jun 2024 23:03:39 +0800 Subject: [PATCH] fix resolve input signer implementation --- packages/core/src/wallet/embedded.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/wallet/embedded.service.ts b/packages/core/src/wallet/embedded.service.ts index 5873db21f..c9ecadf90 100644 --- a/packages/core/src/wallet/embedded.service.ts +++ b/packages/core/src/wallet/embedded.service.ts @@ -382,9 +382,11 @@ export class EmbeddedWallet { u.input.txHash === inputHash.to_hex() ) !== undefined ? paymentKeyHash - : 'OUR_PRINCESS_IS_IN_ANOTHER_CASTLE'; + : undefined; + + const finalSigners = signer ? [...signers, signer] : signers; - return resolveTxInputsSigners(inputs, [...signers, signer], index + 1); + return resolveTxInputsSigners(inputs, finalSigners, index + 1); }; const resolveRequiredSigners = (