From 64f390e829927ded572ca12af281e736f0c682d6 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 3 Nov 2016 07:04:07 -0400 Subject: [PATCH] update readme to reflect promises --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0bef07fd..3079799c 100644 --- a/README.md +++ b/README.md @@ -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: