Skip to content

Commit

Permalink
[Issue 2758] style: fix es-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nampc1 committed Apr 9, 2024
1 parent a060f46 commit db20a94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
28 changes: 7 additions & 21 deletions packages/extension-base/src/services/chain-service/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
// Copyright 2019-2022 @subwallet/extension-base
// SPDX-License-Identifier: Apache-2.0

import {
_AssetRef,
_AssetRefPath,
_AssetType,
_ChainAsset,
_ChainInfo,
_ChainStatus,
_MultiChainAsset,
_SubstrateChainType
} from '@subwallet/chain-list/types';
import {BasicTokenInfo} from '@subwallet/extension-base/background/KoniTypes';
import {_MANTA_ZK_CHAIN_GROUP, _ZK_ASSET_PREFIX} from '@subwallet/extension-base/services/chain-service/constants';
import {
_ChainState,
_CUSTOM_PREFIX,
_DataMap,
_SMART_CONTRACT_STANDARDS
} from '@subwallet/extension-base/services/chain-service/types';
import {IChain} from '@subwallet/extension-base/services/storage-service/databases';

import {isEthereumAddress} from '@polkadot/util-crypto';
import { _AssetRef, _AssetRefPath, _AssetType, _ChainAsset, _ChainInfo, _ChainStatus, _MultiChainAsset, _SubstrateChainType } from '@subwallet/chain-list/types';
import { BasicTokenInfo } from '@subwallet/extension-base/background/KoniTypes';
import { _MANTA_ZK_CHAIN_GROUP, _ZK_ASSET_PREFIX } from '@subwallet/extension-base/services/chain-service/constants';
import { _ChainState, _CUSTOM_PREFIX, _DataMap, _SMART_CONTRACT_STANDARDS } from '@subwallet/extension-base/services/chain-service/types';
import { IChain } from '@subwallet/extension-base/services/storage-service/databases';

import { isEthereumAddress } from '@polkadot/util-crypto';

export function _isCustomChain (slug: string) {
if (slug.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const createConfig = (entry, alias = {}, useSplitChunk = false) => {

module.exports = createConfig({
webapp: ['./src/fallback.ts', './src/webRunner.ts'],
main: './src/index.tsx',
main: './src/index.tsx'
}, {
'manta-extension-sdk': './manta-extension-sdk-empty.ts'
}, true);

0 comments on commit db20a94

Please sign in to comment.