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
|
||||
# app/js/index.js
|
||||
SimpleStorage.set(100);
|
||||
SimpleStorage.get();
|
||||
SimpleStorage.storedData();
|
||||
SimpleStorage.get().then(function(value) { console.log(value.toNumber()) });
|
||||
SimpleStorage.storedData().then(function(value) { console.log(value.toNumber()) });
|
||||
```
|
||||
|
||||
You can specify for each contract and environment its gas costs and arguments:
|
||||
|
|
Loading…
Reference in New Issue