mirror of https://github.com/embarklabs/embark.git
Merge pull request #409 from embark-framework/missing_from
add missing default from
This commit is contained in:
commit
fd38440b97
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue