Skip to content

Commit

Permalink
fix: Use window.trustwallet as TW provider to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
wenty22 committed Nov 25, 2024
1 parent b7b75e2 commit a0d1970
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/pink-carrots-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Use window.trustwallet as TW provider to avoid conflicts
2 changes: 1 addition & 1 deletion packages/walletkit/src/evm/wallets/trustWallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ export function trustWallet(props: InjectedEvmWalletOptions = {}): EvmWallet {

function getProvider() {
if (typeof window === 'undefined') return;
return getEvmInjectedProvider('isTrust') ?? window.trustwallet ?? window.trustWallet;
return window.trustwallet ?? window.trustWallet ?? getEvmInjectedProvider('isTrust');
}

0 comments on commit a0d1970

Please sign in to comment.