diff --git a/.changeset/short-turtles-stare.md b/.changeset/short-turtles-stare.md new file mode 100644 index 00000000..805b7224 --- /dev/null +++ b/.changeset/short-turtles-stare.md @@ -0,0 +1,5 @@ +--- +"@wagmi/connectors": patch +--- + +Added `TTWallet` to `getInjectedName` list diff --git a/packages/connectors/src/types.ts b/packages/connectors/src/types.ts index 149ed745..3aaf614a 100644 --- a/packages/connectors/src/types.ts +++ b/packages/connectors/src/types.ts @@ -47,6 +47,7 @@ type InjectedProviderFlags = { isTokenary?: true isTrust?: true isTrustWallet?: true + isTTWallet?: true isXDEFI?: true isZerion?: true isHaloWallet?: true diff --git a/packages/connectors/src/utils/getInjectedName.test.ts b/packages/connectors/src/utils/getInjectedName.test.ts index 1e9a94b5..607719dd 100644 --- a/packages/connectors/src/utils/getInjectedName.test.ts +++ b/packages/connectors/src/utils/getInjectedName.test.ts @@ -62,6 +62,7 @@ describe.each([ { ethereum: { isTokenary: true, isMetaMask: true }, expected: 'Tokenary' }, { ethereum: { isTrust: true }, expected: 'Trust Wallet' }, { ethereum: { isTrustWallet: true }, expected: 'Trust Wallet' }, + { ethereum: { isTTWallet: true }, expected: 'TTWallet' }, { ethereum: { isXDEFI: true }, expected: 'XDEFI Wallet' }, { ethereum: { isZerion: true }, expected: 'Zerion' }, { ethereum: { isMetaMask: true }, expected: 'MetaMask' }, diff --git a/packages/connectors/src/utils/getInjectedName.ts b/packages/connectors/src/utils/getInjectedName.ts index d97cf787..69cea629 100644 --- a/packages/connectors/src/utils/getInjectedName.ts +++ b/packages/connectors/src/utils/getInjectedName.ts @@ -40,6 +40,7 @@ export function getInjectedName(ethereum?: WindowProvider) { if (provider.isTokenPocket) return 'TokenPocket' if (provider.isTokenary) return 'Tokenary' if (provider.isTrust || provider.isTrustWallet) return 'Trust Wallet' + if (provider.isTTWallet) return 'TTWallet' if (provider.isXDEFI) return 'XDEFI Wallet' if (provider.isZerion) return 'Zerion' if (provider.isMetaMask) return 'MetaMask'