Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
skutner committed Aug 1, 2022
1 parent c7029a3 commit 60f8712
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions plugins/ethereum-adapter/eth-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ async function dlFilesAndWriteJsonFile(config, outputPath) {
const smartContractAbiPath = path.join(sharedRepoPath, "smartContractAbi.json");
const smartContractAddressPath = path.join(sharedRepoPath, "smartContractAddress.json");
const smartContractAbi = fs.readFileSync(smartContractAbiPath, "utf-8")
const smartContractAddress = fs.readFileSync(smartContractAddressPath, "utf-8")
let smartContractAddress = fs.readFileSync(smartContractAddressPath, "utf-8")
smartContractAddress = JSON.parse(smartContractAddress);
const ethAdapterInfoPath = path.join(path.resolve(outputPath), constants.PATHS.ETH_ADAPTER_OUTPUT);
const smartContractInfo = {
abi: JSON.parse(smartContractAbi),
address: JSON.parse(smartContractAddress)
address: smartContractAddress.contractAddress
}

const orgAcc = utils.createOrgAccount();
Expand Down
2 changes: 1 addition & 1 deletion plugins/smart-contract/deploySmartContracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function storeSmartContractsInfo(outputPath, contractsInfo, config) {
}

fs.writeFileSync(smartContractAbiPath, JSON.stringify(contractsInfo[contract].abi, null, "\t"));
fs.writeFileSync(smartContractAddressPath, JSON.stringify(contractsInfo[contract].address, null, "\t"));
fs.writeFileSync(smartContractAddressPath, JSON.stringify({contractAddress: contractsInfo[contract].address}));
}
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/upload-info/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function uploadQuorumNodeInfo(config) {
try {
fs.accessSync(commonPath);
} catch (e) {
fs.mkdirSync(commonPath);
fs.mkdirSync(commonPath, {recursive: true});
}
fs.writeFileSync(enodePath, enode);
fs.writeFileSync(validatorPath, validator);
Expand Down

0 comments on commit 60f8712

Please # to comment.