mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
Update README.md
This commit is contained in:
parent
e3d05af129
commit
57859bd7ca
@ -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:
|
||||
|
||||
```Javascript
|
||||
var myContract = new EmbarkJS.Contract({abi: abiObject, code: code});
|
||||
myContract.deploy().then(function(address) {});
|
||||
SimpleStorage.deploy().then(function(anotherSimpleStorage) {});
|
||||
```
|
||||
|
||||
or it can be manually definied as
|
||||
|
||||
```Javascript
|
||||
var myContract = new EmbarkJS.Contract({abi: abiObject, code: code});
|
||||
myContract.deploy().then(function(address) {});
|
||||
myContract.deploy().then(function(anotherMyContractObject) {});
|
||||
```
|
||||
|
||||
EmbarkJS - Storage
|
||||
|
Loading…
x
Reference in New Issue
Block a user