diff --git a/lib/contracts/code_generator.js b/lib/contracts/code_generator.js index b51068d64..af91b6dda 100644 --- a/lib/contracts/code_generator.js +++ b/lib/contracts/code_generator.js @@ -374,6 +374,7 @@ class CodeGenerator { let providerCode = self.generateProvider(false); code += providerCode; code += "\nglobal.__embarkContext = __mainContext.__loadManagerInstance;\n"; + code += "\nwindow.Web3 = Web3;\n"; code += "\nwindow.web3 = web3;\n"; code += "\nexport default web3;\n"; next(null, code);