Skip to content

Commit

Permalink
Fix Typo, Improve Readability, and Enhance Token Extension Handling (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
kilavvy and ngundotra authored Feb 27, 2025
1 parent 641302b commit d68f9b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/api/metadata/proxy/__tests__/endpoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('metadata/[network] endpoint', () => {
expect(response.status).toBe(400);
});

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

const { request, nextParams } = requestFactory();
Expand Down
2 changes: 1 addition & 1 deletion app/utils/anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,6 @@ function typeDisplayName(
if ('option' in type) return `${typeDisplayName(type.option)} (optional)`;
if ('vec' in type) return `${typeDisplayName(type.vec)}[]`;
if ('array' in type) return `${typeDisplayName(type.array[0])}[${type.array[1]}]`;
return 'unkonwn';
return 'unknown';
}
}
2 changes: 1 addition & 1 deletion app/utils/parseFeatureAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function isFeatureAccount(account: Account): boolean {
export const useFeatureAccount = (account: Account) => {
const isFeature = isFeatureAccount(account);

// allow to retreive sign of a Feature Account
// allow to retrieve sign of a Feature Account
return { isFeature };
};

Expand Down

0 comments on commit d68f9b2

Please sign in to comment.