Skip to content

Commit 64f390e

Browse files
committed
update readme to reflect promises
1 parent 6b7fbf1 commit 64f390e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ Will automatically be available in Javascript as:
169169
```Javascript
170170
# app/js/index.js
171171
SimpleStorage.set(100);
172-
SimpleStorage.get();
173-
SimpleStorage.storedData();
172+
SimpleStorage.get().then(function(value) { console.log(value.toNumber()) });
173+
SimpleStorage.storedData().then(function(value) { console.log(value.toNumber()) });
174174
```
175175

176176
You can specify for each contract and environment its gas costs and arguments:

0 commit comments

Comments
 (0)