@arcblock/erc721did-contract 0.3.114 → 0.3.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -337,15 +337,21 @@ const getCloneContractArgs = ({
337
337
  return params;
338
338
  };
339
339
 
340
+ // 如果存在 ./EvmChainList.local.json,则优先使用本地的链列表,一般出现在本地
341
+ const getLocalEvmChainList = () => {
342
+ try {
343
+ // eslint-disable-next-line global-require, import/no-unresolved
344
+ return require('./EvmChainList.local.json');
345
+ } catch (error) {
346
+ return [];
347
+ }
348
+ };
349
+
340
350
  const getEvmChainList = () => {
341
351
  // eslint-disable-next-line global-require
342
352
  let defaultChainList = require('./EvmChainList.json');
343
353
  try {
344
- defaultChainList = [
345
- ...defaultChainList,
346
- // eslint-disable-next-line global-require
347
- ...require('./EvmChainList.local.json'),
348
- ];
354
+ defaultChainList = [...defaultChainList, ...getLocalEvmChainList()];
349
355
  } catch (error) {
350
356
  // do nothing
351
357
  }
@@ -920,6 +920,22 @@ var require$$9 = {
920
920
  };
921
921
 
922
922
  var require$$10 = [
923
+ {
924
+ chainId: "31337",
925
+ chainName: "Localhost",
926
+ contractFactoryAddress: "0x045857BDEAE7C1c7252d611eB24eB55564198b4C",
927
+ networkName: "localhost",
928
+ symbol: "ETH (Localhost)",
929
+ defaultRPC: "http://localhost:8545",
930
+ explorer: "http://localhost:8545",
931
+ icon: "eth",
932
+ enable: true,
933
+ decimal: 18,
934
+ isTest: true
935
+ }
936
+ ];
937
+
938
+ var require$$11 = [
923
939
  {
924
940
  chainId: "5",
925
941
  chainName: "Goerli",
@@ -1000,22 +1016,6 @@ var require$$10 = [
1000
1016
  }
1001
1017
  ];
1002
1018
 
1003
- var require$$11 = [
1004
- {
1005
- chainId: "31337",
1006
- chainName: "Localhost",
1007
- contractFactoryAddress: "0x045857BDEAE7C1c7252d611eB24eB55564198b4C",
1008
- networkName: "localhost",
1009
- symbol: "ETH (Localhost)",
1010
- defaultRPC: "http://localhost:8545",
1011
- explorer: "http://localhost:8545",
1012
- icon: "eth",
1013
- enable: true,
1014
- decimal: 18,
1015
- isTest: true
1016
- }
1017
- ];
1018
-
1019
1019
  /* eslint-disable no-unused-vars */
1020
1020
 
1021
1021
  /* eslint-disable no-undef */
@@ -1356,15 +1356,21 @@ const getCloneContractArgs = ({
1356
1356
  return params;
1357
1357
  };
1358
1358
 
1359
+ // 如果存在 ./EvmChainList.local.json,则优先使用本地的链列表,一般出现在本地
1360
+ const getLocalEvmChainList = () => {
1361
+ try {
1362
+ // eslint-disable-next-line global-require, import/no-unresolved
1363
+ return require$$10;
1364
+ } catch (error) {
1365
+ return [];
1366
+ }
1367
+ };
1368
+
1359
1369
  const getEvmChainList = () => {
1360
1370
  // eslint-disable-next-line global-require
1361
- let defaultChainList = require$$10;
1371
+ let defaultChainList = require$$11;
1362
1372
  try {
1363
- defaultChainList = [
1364
- ...defaultChainList,
1365
- // eslint-disable-next-line global-require
1366
- ...require$$11,
1367
- ];
1373
+ defaultChainList = [...defaultChainList, ...getLocalEvmChainList()];
1368
1374
  } catch (error) {
1369
1375
  // do nothing
1370
1376
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.114",
6
+ "version": "0.3.116",
7
7
  "author": "arcblock <blocklet@arcblock.io> https://github.com/blocklet",
8
8
  "main": "./lib/cjs",
9
9
  "module": "./lib/es",