diff --git a/package.json b/package.json index ca6ac1c..d0ba25a 100644 --- a/package.json +++ b/package.json @@ -46,5 +46,8 @@ "function-batch": "^1.1.2", "graphql": "^15.3.0", "graphql-request": "^3.1.0" + }, + "volta": { + "node": "10.24.1" } } diff --git a/src/utils/batched-send.js b/src/utils/batched-send.js index cb8b80f..d596171 100644 --- a/src/utils/batched-send.js +++ b/src/utils/batched-send.js @@ -58,7 +58,7 @@ module.exports = ( ).then(_pendingBatches => (pendingBatches = _pendingBatches)) const currentGasPrice = web3.utils.toBN(await web3.eth.getGasPrice()) - const maxGasPrice = process.env.GAS_PRICE_CEILING_WEI + const maxGasPrice = !!process.env.GAS_PRICE_CEILING_WEI ? process.env.GAS_PRICE_CEILING_WEI : currentGasPrice const gasPrice = currentGasPrice.gt(web3.utils.toBN(maxGasPrice)) ? maxGasPrice : currentGasPrice.toString() diff --git a/src/xdai-bots/x-kleros-liquid.js b/src/xdai-bots/x-kleros-liquid.js index 96b0372..0656a4e 100644 --- a/src/xdai-bots/x-kleros-liquid.js +++ b/src/xdai-bots/x-kleros-liquid.js @@ -182,6 +182,7 @@ module.exports = async (web3, batchedSend) => { if (readyForNextPhase) { batchedSend({ + args: [], method: xKlerosLiquid.methods.passPhase, to: xKlerosLiquid.options.address })