update readme

This commit is contained in:
Iuri Matias 2015-06-22 07:54:22 -04:00
parent b212a69ce0
commit 18dd35f1a5
1 changed files with 7 additions and 1 deletions

View File

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