Skip to content

Commit aad7f2e

Browse files
committed
ci build
1 parent 1b87f99 commit aad7f2e

7 files changed

+19
-12
lines changed

src/identity/utils/getAvatar.test.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ describe('getAvatar', () => {
125125
expect(getChainPublicClient).toHaveBeenNthCalledWith(2, mainnet);
126126
});
127127

128-
129128
it('should use default base avatar when both mainnet and base mainnet avatar are not available', async () => {
130129
const ensName = 'shrek.base.eth';
131130
const expectedBaseAvatarUrl = null;
@@ -137,7 +136,9 @@ describe('getAvatar', () => {
137136

138137
const avatarUrl = await getAvatar({ ensName, chain: base });
139138

140-
const avatarUrlIsUriData = avatarUrl?.startsWith('data:image/svg+xml;base64')
139+
const avatarUrlIsUriData = avatarUrl?.startsWith(
140+
'data:image/svg+xml;base64',
141+
);
141142
expect(avatarUrlIsUriData).toBe(true);
142143
expect(mockGetEnsAvatar).toHaveBeenNthCalledWith(1, {
143144
name: ensName,
@@ -164,7 +165,9 @@ describe('getAvatar', () => {
164165

165166
const avatarUrl = await getAvatar({ ensName, chain: baseSepolia });
166167

167-
const avatarUrlIsUriData = avatarUrl?.startsWith('data:image/svg+xml;base64')
168+
const avatarUrlIsUriData = avatarUrl?.startsWith(
169+
'data:image/svg+xml;base64',
170+
);
168171
expect(avatarUrlIsUriData).toBe(true);
169172
expect(mockGetEnsAvatar).toHaveBeenNthCalledWith(1, {
170173
name: ensName,

src/identity/utils/getAvatar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const getAvatar = async ({
5353
name: normalize(ensName),
5454
});
5555

56-
if(mainnetEnsAvatar) {
56+
if (mainnetEnsAvatar) {
5757
return mainnetEnsAvatar;
5858
}
5959

src/identity/utils/getBaseDefaultProfilePicture.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { getBaseDefaultProfilePicture } from './getBaseDefaultProfilePicture';
32

43
describe('getBaseDefaultProfilePicture', () => {

src/identity/utils/getBaseDefaultProfilePictureIndex.test.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { getBaseDefaultProfilePictureIndex } from './getBaseDefaultProfilePictureIndex';
32

43
describe('getBaseDefaultProfilePictureIndex', () => {
@@ -13,6 +12,8 @@ describe('getBaseDefaultProfilePictureIndex', () => {
1312
expect(getBaseDefaultProfilePictureIndex('leo.base.eth', 7)).toBe(0);
1413
expect(getBaseDefaultProfilePictureIndex('leo.basetest.eth', 7)).toBe(3);
1514
expect(getBaseDefaultProfilePictureIndex('zimmania.base.eth', 7)).toBe(5);
16-
expect(getBaseDefaultProfilePictureIndex('zimmania.basetest.eth', 7)).toBe(4);
15+
expect(getBaseDefaultProfilePictureIndex('zimmania.basetest.eth', 7)).toBe(
16+
4,
17+
);
1718
});
1819
});

src/identity/utils/getBaseDefaultProfilePictureIndex.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sha256 } from "viem";
1+
import { sha256 } from 'viem';
22

33
// Will return a an index between 0 and optionsLength
44
export const getBaseDefaultProfilePictureIndex = (
@@ -13,4 +13,4 @@ export const getBaseDefaultProfilePictureIndex = (
1313
const remainder = hashValue % optionsLength;
1414
const index = remainder;
1515
return index;
16-
};
16+
};

src/identity/utils/isBasename.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { isBasename } from './isBasename';
32

43
describe('isBasename', () => {

src/identity/utils/isBasename.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
export const isBasename = (username: string) => {
2-
if (username.endsWith('.base.eth')) return true;
3-
if (username.endsWith('.basetest.eth')) return true;
2+
if (username.endsWith('.base.eth')) {
3+
return true;
4+
}
5+
6+
if (username.endsWith('.basetest.eth')) {
7+
return true;
8+
}
49
return false;
510
};

0 commit comments

Comments
 (0)