From f747de7b61605f8c979a88be91c07bf191355af7 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 24 May 2019 16:38:41 -0400 Subject: [PATCH] fix web3 undefined issue --- src/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions.js b/src/actions.js index 09462c1..90af891 100644 --- a/src/actions.js +++ b/src/actions.js @@ -129,7 +129,7 @@ class Actions { console.log("Payment ID: " , paymentId); toSend = this.contracts.LPVault.methods.confirmPayment(paymentId); - receipt = await TrxUtils.executeAndWait(toSend, web3.eth.defaultAccount); + receipt = await TrxUtils.executeAndWait(toSend, this.web3.eth.defaultAccount); console.dir("txHash: " + receipt.transactionHash); }); }