From 2313426a37d1bbdd20a95e456e3e691907933014 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 28 Mar 2018 16:51:09 -0400 Subject: [PATCH] Adding data option to contract when web3 1.0 is used --- js/embark.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/embark.js b/js/embark.js index 12b1e5cf..6498ac1b 100644 --- a/js/embark.js +++ b/js/embark.js @@ -25,6 +25,7 @@ EmbarkJS.Contract = function(options) { // add gasPrice ContractClass = new this.web3.eth.Contract(this.abi, this.address); ContractClass.setProvider(this.web3.currentProvider); + ContractClass.options.data = this.code; return ContractClass; } else {