From cc702c65f1cc4f901cadbdf93faeb221a7d7d9a8 Mon Sep 17 00:00:00 2001 From: BananaNeil Date: Mon, 26 Jul 2021 01:54:58 -0600 Subject: [PATCH] Fixed an issue with the web3 service I'm experiencing an error: "Cannot read property 'contract' of undefined" on line 21 of this file because `this.get('web3Instance')` is not returning the correct object. I believe this is the fix. --- addon/services/web3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/services/web3.js b/addon/services/web3.js index ad3c75f..39841ec 100644 --- a/addon/services/web3.js +++ b/addon/services/web3.js @@ -8,7 +8,7 @@ export default Service.extend({ setup(provider) { let web3Instance = new Web3(provider); - this.set('web3Instance', web3); + this.set('web3Instance', web3Instance); return web3Instance; },