Skip to content

Commit 21094c2

Browse files
ayobuenavistailanDoron
authored andcommitted
Quick fixes to liquidityReserveDeployer.js script for deployment of APR (#556)
1 parent 842cf05 commit 21094c2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

web3deployment/liquidityReserveDeployer.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ async function sendTx(txObject) {
7272
// don't wait for confirmation
7373
signedTxs.push(signedTx.rawTransaction)
7474
if (!dontSendTx) {
75-
web3.eth.sendSignedTransaction(signedTx.rawTransaction, {from:sender});
75+
try {
76+
web3.eth.sendSignedTransaction(signedTx.rawTransaction, {from:sender});
77+
} catch (e) {
78+
console.error(e);
79+
}
7680
}
7781
}
7882

@@ -105,9 +109,9 @@ const input = {
105109
"Utils.sol" : fs.readFileSync(contractPath + 'Utils.sol', 'utf8'),
106110
"KyberReserveInterface.sol" : fs.readFileSync(contractPath + 'KyberReserveInterface.sol', 'utf8'),
107111
"Withdrawable.sol" : fs.readFileSync(contractPath + 'Withdrawable.sol', 'utf8'),
108-
"KyberReserve.sol" : fs.readFileSync(contractPath + 'KyberReserve.sol', 'utf8'),
109-
"LiquidityConversionRates.sol" : fs.readFileSync(contractPath + 'LiquidityConversionRates.sol', 'utf8'),
110-
"LiquidityFormula.sol" : fs.readFileSync(contractPath + 'LiquidityFormula.sol', 'utf8'),
112+
"KyberReserve.sol" : fs.readFileSync(contractPath + 'reserves/KyberReserve.sol', 'utf8'),
113+
"LiquidityConversionRates.sol" : fs.readFileSync(contractPath + '/reserves/aprConversionRate/LiquidityConversionRates.sol', 'utf8'),
114+
"LiquidityFormula.sol" : fs.readFileSync(contractPath + '/reserves/aprConversionRate/LiquidityFormula.sol', 'utf8'),
111115
};
112116

113117
let reserveAddress;

0 commit comments

Comments
 (0)