Skip to content

Commit

Permalink
fix: message signing import (#215)
Browse files Browse the repository at this point in the history
* fix: message signing import

* chore: changeset
  • Loading branch information
MartinSchere authored Nov 21, 2024
1 parent 4796285 commit 28bd338
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lazy-ties-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@blaze-cardano/wallet": patch
---

Fix message signing import
3 changes: 2 additions & 1 deletion packages/blaze-wallet/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export async function signData(
COSEKey,
KeyType,
} = await import(
typeof process === "object"
// @ts-expect-error - TS doesn't recognize window object
typeof window === "undefined"
? "@emurgo/cardano-message-signing-nodejs"
: "@emurgo/cardano-message-signing-browser"
);
Expand Down

0 comments on commit 28bd338

Please sign in to comment.