Merge pull request #409 from embark-framework/missing_from

add missing default from
This commit is contained in:
Jonathan Rainville 2018-05-11 15:57:35 -04:00 committed by GitHub
commit fd38440b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -265,6 +265,7 @@ class Pipeline {
contractCode += "\n__embarkContext.execWhenReady(function() {\n"; contractCode += "\n__embarkContext.execWhenReady(function() {\n";
contractCode += "\n" + contractName + ".setProvider(web3.currentProvider);\n"; contractCode += "\n" + contractName + ".setProvider(web3.currentProvider);\n";
contractCode += "\n" + contractName + ".options.from = web3.eth.defaultAccount;\n";
contractCode += "\n});\n"; contractCode += "\n});\n";
contractCode += "export default " + contractName + ";\n"; contractCode += "export default " + contractName + ";\n";