mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
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…
x
Reference in New Issue
Block a user