Skip to content

Commit e0212dc

Browse files
committed
[ChainList] [Patch] Test patch
1 parent 05b11f6 commit e0212dc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ BRANCH_NAME=master
55
SUBWALLET_API=http://localhost:3000/api
66
SW_EXTERNAL_SERVICES_API=http://localhost:8787
77
MELD_WIZARD_KEY=meldAbcdef:1234
8+
PATCH_CHAIN_LIST_URL=https://...

.env.pull-request.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
SUBWALLET_API=https://be-dev-01.subwallet.app/api
2+
PATCH_CHAIN_LIST_URL=https://495-merge.sw-chain-list-assets.pages.dev

packages/extension-base/src/services/chain-service/utils/patch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { _ChainAsset, _ChainInfo, _MultiChainAsset } from '@subwallet/chain-list
55

66
const PRODUCTION_BRANCHES = ['master', 'webapp', 'webapp-dev'];
77
const branchName = process.env.BRANCH_NAME || 'subwallet-dev';
8-
const fetchDomain = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'https://chain-list-assets.subwallet.app' : 'https://dev.sw-chain-list-assets.pages.dev';
8+
const fetchDomain = process.env.PATCH_CHAIN_LIST_URL || PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'https://chain-list-assets.subwallet.app' : 'https://dev.sw-chain-list-assets.pages.dev';
99
const fetchFile = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'list.json' : 'preview.json';
1010

1111
const ChainListVersion = '0.2.107'; // update this when build chainlist

0 commit comments

Comments
 (0)