Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Nov 25, 2024
1 parent ab2753b commit 0befe45
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions packages/starknet-snap/src/getAddrFromStarkName.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import type {
ApiParams,
GetAddrFromStarkNameRequestParam,
} from './types/snapApi';
import { logger } from './utils/logger';
import { toJson } from './utils/serializer';
import { getAddrFromStarkNameUtil } from '../src/utils/starknetUtils';
import { ApiParams, GetAddrFromStarkNameRequestParam } from './types/snapApi';
import { getNetworkFromChainId } from './utils/snapUtils';
import { logger } from './utils/logger';
import { getAddrFromStarkNameUtil } from './utils/starknetUtils';

/**
*
* @param params
*/
export async function getAddrFromStarkName(params: ApiParams) {
try {
const { state, requestParams } = params;
Expand All @@ -25,8 +32,8 @@ export async function getAddrFromStarkName(params: ApiParams) {
logger.log(`getAddrFromStarkName: addr:\n${toJson(resp)}`);

return resp;
} catch (err) {
logger.error(`Problem found: ${err}`);
throw err;
} catch (error) {
logger.error(`Problem found:`, error);
throw error;
}
}
2 changes: 1 addition & 1 deletion packages/starknet-snap/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import { createAccount } from './createAccount';
import { estimateAccDeployFee } from './estimateAccountDeployFee';
import { estimateFees } from './estimateFees';
import { extractPublicKey } from './extractPublicKey';
import { getAddrFromStarkName } from './getAddrFromStarkName';
import { getCurrentNetwork } from './getCurrentNetwork';
import { getErc20TokenBalance } from './getErc20TokenBalance';
import { getStarkName } from './getStarkName';
import { getAddrFromStarkName } from './getAddrFromStarkName';
import { getStoredErc20Tokens } from './getStoredErc20Tokens';
import { getStoredNetworks } from './getStoredNetworks';
import { getStoredTransactions } from './getStoredTransactions';
Expand Down

0 comments on commit 0befe45

Please sign in to comment.