-
-
Notifications
You must be signed in to change notification settings - Fork 204
feat: add custom name mapping Infinity Wallet #490
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a changeset with pnpm changeset
and alphabetize in a few places.
@@ -9,6 +9,7 @@ import { | |||
import { ConnectorData } from './base' | |||
|
|||
type InjectedProviderFlags = { | |||
isInfinityWallet?: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alphabetize
@@ -5,6 +5,7 @@ import { getInjectedName } from './getInjectedName' | |||
|
|||
describe.each([ | |||
{ ethereum: undefined, expected: 'Injected' }, | |||
{ ethereum: { isInfinityWallet: true }, expected: 'Infinity Wallet' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alphabetize
@@ -4,6 +4,7 @@ export function getInjectedName(ethereum?: WindowProvider) { | |||
if (!ethereum) return 'Injected' | |||
|
|||
const getName = (provider: WindowProvider) => { | |||
if (provider.isInfinityWallet) return 'Infinity Wallet' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alphabetize
Was unable to push updates. Feel free to re-open this PR with PR feedback added or enable pushes. |
Description
Adds custom name mapping for the Infinity Wallet injected provider.
Additional Information