Skip to content

Commit

Permalink
fix: simplify spirekey signTx
Browse files Browse the repository at this point in the history
  • Loading branch information
hcote committed Dec 10, 2024
1 parent fcc3de4 commit 51a6fb5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 51a6fb5

Please sign in to comment.