mirror of https://github.com/embarklabs/embark.git
update readme to reflect promises
This commit is contained in:
parent
6b7fbf1785
commit
64f390e829
|
@ -169,8 +169,8 @@ Will automatically be available in Javascript as:
|
||||||
```Javascript
|
```Javascript
|
||||||
# app/js/index.js
|
# app/js/index.js
|
||||||
SimpleStorage.set(100);
|
SimpleStorage.set(100);
|
||||||
SimpleStorage.get();
|
SimpleStorage.get().then(function(value) { console.log(value.toNumber()) });
|
||||||
SimpleStorage.storedData();
|
SimpleStorage.storedData().then(function(value) { console.log(value.toNumber()) });
|
||||||
```
|
```
|
||||||
|
|
||||||
You can specify for each contract and environment its gas costs and arguments:
|
You can specify for each contract and environment its gas costs and arguments:
|
||||||
|
|
Loading…
Reference in New Issue