From 4b52e1465d5cbd76edc532cc4a9bd7b4c183e1ea Mon Sep 17 00:00:00 2001 From: Jorn Date: Wed, 10 Feb 2021 14:28:22 +0100 Subject: [PATCH] Update contract.js Fix issue by adding new Contract --- contract.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contract.js b/contract.js index abea66b..bf47db2 100644 --- a/contract.js +++ b/contract.js @@ -9,6 +9,6 @@ const web3 = new Web3(new Web3.providers.HttpProvider((Config || {}).provider || const contractAddress = (Config || {}).contractAddress; module.exports.getContract = () => { - const contract = web3.eth.Contract(Parameters.abi, contractAddress); + const contract = new web3.eth.Contract(Parameters.abi, contractAddress); return contract; };