Skip to content

Commit d68f9b2

Browse files
kilavvyngundotra
andauthored
Fix Typo, Improve Readability, and Enhance Token Extension Handling (#471)
**This pull request includes the following changes:** - Fixed a typo: Corrected "procesisg" to "processing" in test descriptions. - Improved readability: Adjusted comment formatting in parseFeatureAccount.ts. - Enhanced token extension handling: Updated unparseableExtension naming for consistency in token-extension.ts. These changes improve code clarity, maintainability, and ensure better developer experience. <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Fixes typos, improves readability, and renames `unparseableExtension` to `unparsableExtension` for consistency. > > - **Token Extension Handling**: > - Renamed `unparseableExtension` to `unparsableExtension` in `token-extension.ts` for consistency. > - **Typo Fixes**: > - Corrected "procesisg" to "processing" in `endpoint.test.ts`. > - Corrected "unkonwn" to "unknown" in `anchor.tsx`. > - **Readability Improvements**: > - Adjusted comment formatting in `parseFeatureAccount.ts`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=solana-foundation%2Fexplorer&utm_source=github&utm_medium=referral)<sup> for 9e195d3. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN --> --------- Co-authored-by: Noah Gundotra <ngundotra@users.noreply.github.com>
1 parent 641302b commit d68f9b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/api/metadata/proxy/__tests__/endpoint.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('metadata/[network] endpoint', () => {
7272
expect(response.status).toBe(400);
7373
});
7474

75-
it('should return proper status upon processig data', async () => {
75+
it('should return proper status upon processing data', async () => {
7676
setEnvironment('NEXT_PUBLIC_METADATA_ENABLED', 'true');
7777

7878
const { request, nextParams } = requestFactory();

app/utils/anchor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,6 @@ function typeDisplayName(
503503
if ('option' in type) return `${typeDisplayName(type.option)} (optional)`;
504504
if ('vec' in type) return `${typeDisplayName(type.vec)}[]`;
505505
if ('array' in type) return `${typeDisplayName(type.array[0])}[${type.array[1]}]`;
506-
return 'unkonwn';
506+
return 'unknown';
507507
}
508508
}

app/utils/parseFeatureAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function isFeatureAccount(account: Account): boolean {
1515
export const useFeatureAccount = (account: Account) => {
1616
const isFeature = isFeatureAccount(account);
1717

18-
// allow to retreive sign of a Feature Account
18+
// allow to retrieve sign of a Feature Account
1919
return { isFeature };
2020
};
2121

0 commit comments

Comments
 (0)