From f8322ba665378b314e153858f594487f3ff94d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BF=8A=E9=92=A6?= Date: Sat, 11 Mar 2017 17:07:34 +0800 Subject: [PATCH] Update embarkjs.rst update deploy usage --- docs/embarkjs.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/embarkjs.rst b/docs/embarkjs.rst index 50c0e7474..dd6a39fcc 100644 --- a/docs/embarkjs.rst +++ b/docs/embarkjs.rst @@ -20,11 +20,17 @@ existing contracts: .. code:: javascript - SimpleStorage.deploy().then(function(anotherSimpleStorage) {}); + SimpleStorage.deploy([args], {options}).then(function(anotherSimpleStorage) {}); or it can be manually definied as .. code:: javascript var myContract = new EmbarkJS.Contract({abi: abiObject, code: code}); - myContract.deploy().then(function(anotherMyContractObject) {}); + myContract.deploy([args], {options}).then(function(anotherMyContractObject) {}); + +so you can define your gas as + +.. code:: javascript + + myContract.deploy([100, "seconde argument"], {gas: 800000}).then(function(anotherMyContractObject) {});