From 51a6fb5e4a05f4949008f4baffdd33866cf12574 Mon Sep 17 00:00:00 2001 From: Hunter Cote Date: Tue, 10 Dec 2024 12:10:47 -0500 Subject: [PATCH] fix: simplify spirekey signTx --- src/App.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index c024239..4d2ab66 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -145,11 +145,8 @@ function App() { const isSpireKeyLogin = Boolean(userInfo?.loginType === "spirekey"); if (isSpireKeyLogin) { - const signature = await magic.kadena.signTransactionWithSpireKey(transaction); - return addSignatures( - transaction, - ...(signature.transactions[0] as SignedCommand).sigs - ); + const { transactions } = await magic.kadena.signTransactionWithSpireKey(transaction); + return transactions[0]; } else { const signature = await magic.kadena.signTransaction(transaction.hash); return addSignatures(transaction, signature);