From 18dd35f1a5a7103e080f14f6dba576475db8a1e5 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 22 Jun 2015 07:54:22 -0400 Subject: [PATCH] update readme --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 04aed66f0..1c5b8d1e8 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,12 @@ Embark will automatically take care of deployment for you and set all needed JS ```Javascript # app/contracts/simple_storage.sol contract SimpleStorage { - uint storedData; + uint public storedData; + + function SimpleStorage(uint initialValue) { + storedData = initialValue; + } + function set(uint x) { storedData = x; } @@ -98,6 +103,7 @@ Will automatically be available in Javascript as: # app/js/index.js SimpleStorage.set(100); SimpleStorage.get(); +SimpleStorage.storedData(); ``` You can specify for each contract and environment its gas costs and arguments: