From bcbad90475f488094af36b92bb97dd87f31f985e Mon Sep 17 00:00:00 2001 From: hichri-louay Date: Mon, 26 Feb 2024 14:36:41 +0100 Subject: [PATCH] fix undefined vars --- web3/campaigns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3/campaigns.js b/web3/campaigns.js index 87a4a0f6..e7ecd898 100644 --- a/web3/campaigns.js +++ b/web3/campaigns.js @@ -1273,7 +1273,7 @@ exports.getGains = async ( var gasPrice = network === 'ARTHERA' ? await credentials.Web3ARTHERA.eth.getGasPrice() - : await contract.getGasPrice() + : await ctr.getGasPrice() var receipt = await ctr.methods.getGains(idProm).send({ from: credentials.address, gas: gas,