Skip to content

Commit

Permalink
Merge pull request #1119 from urbit/st/wc-ledger-fix
Browse files Browse the repository at this point in the history
WalletConnect & Ledger bug fix
  • Loading branch information
pkova authored Sep 18, 2023
2 parents a61dac6 + 56b4f07 commit 9e189b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/useWalletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,12 @@ export const useWalletConnect = () => {
return;
}

// Ledger Live needs to use fakeSign instead since it sends the txn upon signing
if (peerMeta?.name === 'Ledger Wallet') {
reject(new Error('METHOD_NOT_SUPPORTED'));
return;
}

return connector
.request<string>({
topic: session?.topic!,
Expand Down

0 comments on commit 9e189b5

Please sign in to comment.