1
This commit is contained in:
parent
e5e776267b
commit
f62bffa0b8
@ -113,12 +113,12 @@ async function init() {
|
|||||||
traverseMetaList('Web3BcSpider', (item, idx) => {
|
traverseMetaList('Web3BcSpider', (item, idx) => {
|
||||||
if (item['instance_id'] == app.getInstanceId()) {
|
if (item['instance_id'] == app.getInstanceId()) {
|
||||||
web3BcSpiderConf = item;
|
web3BcSpiderConf = item;
|
||||||
item['nets'].forEach((netId) => {
|
item['nets'].forEach((net) => {
|
||||||
|
const netId = net['net_id'];
|
||||||
const netDir = configDir + 'nets/' + netId + '/';
|
const netDir = configDir + 'nets/' + netId + '/';
|
||||||
web3ConfHash[netId] = {
|
web3ConfHash[netId] = {
|
||||||
'Web3': utils.readJsonFromFile(netDir + 'web3.json'),
|
'Web3': utils.readJsonFromFile(netDir + 'web3.json'),
|
||||||
'Contract': utils.readJsonFromFile(netDir + 'contract.json'),
|
'Contract': utils.readJsonFromFile(netDir + 'contract.json'),
|
||||||
'Events': utils.readJsonFromFile(netDir + 'events.json')
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user