diff --git a/.changeset/yellow-icons-carry.md b/.changeset/yellow-icons-carry.md new file mode 100644 index 00000000..0383f29a --- /dev/null +++ b/.changeset/yellow-icons-carry.md @@ -0,0 +1,5 @@ +--- +"@wagmi/connectors": patch +--- + +Added Coin98 Wallet injected flags. diff --git a/packages/connectors/src/metaMask.ts b/packages/connectors/src/metaMask.ts index 48dcf307..a494b47a 100644 --- a/packages/connectors/src/metaMask.ts +++ b/packages/connectors/src/metaMask.ts @@ -51,6 +51,7 @@ export class MetaMaskConnector extends InjectedConnector { if (ethereum.isAvalanche) return if (ethereum.isBitKeep) return if (ethereum.isBlockWallet) return + if (ethereum.isCoin98) return if (ethereum.isFordefi) return if (ethereum.isMathWallet) return if (ethereum.isOkxWallet || ethereum.isOKExWallet) return diff --git a/packages/connectors/src/types.ts b/packages/connectors/src/types.ts index cb59fe48..c890f72e 100644 --- a/packages/connectors/src/types.ts +++ b/packages/connectors/src/types.ts @@ -17,6 +17,7 @@ type InjectedProviderFlags = { isBitski?: true isBlockWallet?: true isBraveWallet?: true + isCoin98?: true isCoinbaseWallet?: true isDawn?: true isDefiant?: true diff --git a/packages/connectors/src/utils/getInjectedName.test.ts b/packages/connectors/src/utils/getInjectedName.test.ts index c27a5679..f34d87fd 100644 --- a/packages/connectors/src/utils/getInjectedName.test.ts +++ b/packages/connectors/src/utils/getInjectedName.test.ts @@ -25,6 +25,7 @@ describe.each([ ethereum: { isBraveWallet: true, isMetaMask: true }, expected: 'Brave Wallet', }, + { ethereum: { isCoin98: true }, expected: 'Coin98 Wallet' }, { ethereum: { isCoinbaseWallet: true }, expected: 'Coinbase Wallet' }, { ethereum: { isDawn: true }, expected: 'Dawn Wallet' }, { ethereum: { isDefiant: true }, expected: 'Defiant' }, diff --git a/packages/connectors/src/utils/getInjectedName.ts b/packages/connectors/src/utils/getInjectedName.ts index c99a9655..310d764e 100644 --- a/packages/connectors/src/utils/getInjectedName.ts +++ b/packages/connectors/src/utils/getInjectedName.ts @@ -12,6 +12,7 @@ export function getInjectedName(ethereum?: WindowProvider) { if (provider.isBitski) return 'Bitski' if (provider.isBlockWallet) return 'BlockWallet' if (provider.isBraveWallet) return 'Brave Wallet' + if (provider.isCoin98) return 'Coin98 Wallet' if (provider.isCoinbaseWallet) return 'Coinbase Wallet' if (provider.isDawn) return 'Dawn Wallet' if (provider.isDefiant) return 'Defiant'