Skip to content

Commit

Permalink
[Issue-81] fix: fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
bluezdot committed May 21, 2024
1 parent cddd073 commit 46ee3bf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/extension-base/src/background/KoniTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TransactionError } from '@subwallet/extension-base/background/errors/Tr
import { AuthUrls, Resolver } from '@subwallet/extension-base/background/handlers/State';
import { AccountAuthType, AccountJson, AccountProxy, AddressJson, AuthorizeRequest, ConfirmationRequestBase, RequestAccountList, RequestAccountProxy, RequestAccountSubscribe, RequestAccountUnsubscribe, RequestAuthorizeCancel, RequestAuthorizeReject, RequestAuthorizeSubscribe, RequestAuthorizeTab, RequestCurrentAccountAddress, ResponseAuthorizeList, ResponseJsonGetAccountInfo, SeedLengths } from '@subwallet/extension-base/background/types';
import { _CHAIN_VALIDATION_ERROR } from '@subwallet/extension-base/services/chain-service/handler/types';
import { _BitcoinApi, _ChainState, _EvmApi, _NetworkUpsertParams, _SubstrateApi, _ValidateCustomAssetRequest, _ValidateCustomAssetResponse, EnableChainParams, EnableMultiChainParams, _ValidateCustomBrc20Request, _ValidateCustomBrc20Response, _ValidateCustomRuneRequest, _ValidateCustomRuneResponse } from '@subwallet/extension-base/services/chain-service/types';
import { _BitcoinApi, _ChainState, _EvmApi, _NetworkUpsertParams, _SubstrateApi, _ValidateCustomAssetRequest, _ValidateCustomAssetResponse, _ValidateCustomBrc20Request, _ValidateCustomBrc20Response, _ValidateCustomRuneRequest, _ValidateCustomRuneResponse, EnableChainParams, EnableMultiChainParams } from '@subwallet/extension-base/services/chain-service/types';
import { CrowdloanContributionsResponse } from '@subwallet/extension-base/services/subscan-service/types';
import { SWTransactionResponse, SWTransactionResult } from '@subwallet/extension-base/services/transaction-service/types';
import { WalletConnectNotSupportRequest, WalletConnectSessionRequest } from '@subwallet/extension-base/services/wallet-connect-service/types';
Expand Down
4 changes: 2 additions & 2 deletions packages/extension-base/src/services/chain-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ export class ChainService {

const spacerList = decodeRuneSpacer(parseInt(spacer));
const runeName = insertRuneSpacer(baseRuneName, spacerList);
const isContractError = (!baseRuneName)
const isContractError = (!baseRuneName);

return {
decimals: parseInt(runeCollection.divisibility) || 0,
Expand Down Expand Up @@ -1859,7 +1859,7 @@ export class ChainService {
private async getBrc20Info (ticker: string, tokenType: _AssetType, originChain: string) {
if ([_AssetType.BRC20].includes(tokenType) && originChain === _BITCOIN_CHAIN_SLUG) {
const brc20Metdata = await getBrc20Metadata(ticker);
const isContractError = (!(brc20Metdata.decimals && brc20Metdata))
const isContractError = (!(brc20Metdata.decimals && brc20Metdata));

return {
decimals: brc20Metdata.decimals,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function Component ({ className = '' }: Props): React.ReactElement<Props> {
}, [chainInfoMap, form]);

const onSubmit: FormCallbacks<TokenImportFormType>['onFinish'] = useCallback((formValues: TokenImportFormType) => {
const { chain, decimals, contractAddress, priceId, symbol, tokenName, type } = formValues;
const { chain, contractAddress, decimals, priceId, symbol, tokenName, type } = formValues;
let metadata: Record<string, string>;

if (type === _AssetType.RUNE) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { _ChainAsset } from '@subwallet/chain-list/types';
import { _getContractAddressOfToken, _isCustomAsset, _isSmartContractToken, _isBrc20Token, _isRuneToken } from '@subwallet/extension-base/services/chain-service/utils';
import { _getContractAddressOfToken, _isBrc20Token, _isCustomAsset, _isRuneToken, _isSmartContractToken } from '@subwallet/extension-base/services/chain-service/utils';
import { Layout, PageWrapper } from '@subwallet/extension-koni-ui/components';
import { DataContext } from '@subwallet/extension-koni-ui/contexts/DataContext';
import useNotification from '@subwallet/extension-koni-ui/hooks/common/useNotification';
Expand Down

0 comments on commit 46ee3bf

Please sign in to comment.