Merge branch 'develop' of github.com:iurimatias/embark-framework into develop
This commit is contained in:
commit
fdda38b7ac
|
@ -277,15 +277,14 @@ methods in EmbarkJS contracts will be converted to promises.
|
||||||
Client side deployment will be automatically available in Embark for existing contracts:
|
Client side deployment will be automatically available in Embark for existing contracts:
|
||||||
|
|
||||||
```Javascript
|
```Javascript
|
||||||
var myContract = new EmbarkJS.Contract({abi: abiObject, code: code});
|
SimpleStorage.deploy().then(function(anotherSimpleStorage) {});
|
||||||
myContract.deploy().then(function(address) {});
|
|
||||||
```
|
```
|
||||||
|
|
||||||
or it can be manually definied as
|
or it can be manually definied as
|
||||||
|
|
||||||
```Javascript
|
```Javascript
|
||||||
var myContract = new EmbarkJS.Contract({abi: abiObject, code: code});
|
var myContract = new EmbarkJS.Contract({abi: abiObject, code: code});
|
||||||
myContract.deploy().then(function(address) {});
|
myContract.deploy().then(function(anotherMyContractObject) {});
|
||||||
```
|
```
|
||||||
|
|
||||||
EmbarkJS - Storage
|
EmbarkJS - Storage
|
||||||
|
|
Loading…
Reference in New Issue