update readme to reflect promises

This commit is contained in:
Iuri Matias 2016-11-03 07:04:07 -04:00
parent 6b7fbf1785
commit 64f390e829
1 changed files with 2 additions and 2 deletions

View File

@ -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: