diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index dfd49d01b..f9530d09a 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -265,6 +265,7 @@ class Pipeline { contractCode += "\n__embarkContext.execWhenReady(function() {\n"; contractCode += "\n" + contractName + ".setProvider(web3.currentProvider);\n"; + contractCode += "\n" + contractName + ".options.from = web3.eth.defaultAccount;\n"; contractCode += "\n});\n"; contractCode += "export default " + contractName + ";\n";