Skip to content

Commit

Permalink
fix: identity API only works for mainnet ENS
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Apr 12, 2024
1 parent 173f0c5 commit 0bade3e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/controllers/BlockchainApiController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ const api = new FetchUtil({ baseUrl })

// -- Controller ---------------------------------------- //
export const BlockchainApiController = {
fetchIdentity({ caipChainId, address }: BlockchainApiIdentityRequest) {
fetchIdentity({ address }: BlockchainApiIdentityRequest) {
return api.get<BlockchainApiIdentityResponse>({
path: `/v1/identity/${address}`,
params: {
chainId: caipChainId,
projectId: OptionsController.state.projectId
}
})
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/utils/TypeUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ export interface ThemeVariables {

// -- BlockchainApiController Types ---------------------------------------------
export interface BlockchainApiIdentityRequest {
caipChainId: CaipNetworkId
address: string
}

Expand Down
1 change: 0 additions & 1 deletion packages/wagmi/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ export class Web3Modal extends Web3ModalScaffold {

try {
const { name, avatar } = await this.fetchIdentity({
caipChainId: `${ConstantsUtil.EIP155}:${chainId}`,
address
})
this.setProfileName(name)
Expand Down

0 comments on commit 0bade3e

Please sign in to comment.