Update README.md

This commit is contained in:
Iuri Matias 2016-10-18 05:13:54 -04:00 committed by GitHub
parent 09e51e35a1
commit 5752a22ac1

View File

@ -212,7 +212,7 @@ Contracts addresses can be defined, If an address is defined the contract wouldn
}, },
"UserManagement": { "UserManagement": {
"args": [ "args": [
"\$UserStorage" "$UserStorage"
] ]
} }
} }
@ -226,6 +226,10 @@ EmbarkJS
EmbarkJS is a javascript library meant to abstract and facilitate the development of DApps. EmbarkJS is a javascript library meant to abstract and facilitate the development of DApps.
** promises **
methods in EmbarkJS contracts will be converted to promises
```Javascript ```Javascript
var myContract = new EmbarkJS.Contract({abi: abiObject, address: "0x123"}); var myContract = new EmbarkJS.Contract({abi: abiObject, address: "0x123"});
myContract.get().then(function(value) { console.log("value is " + value.toNumber) }); myContract.get().then(function(value) { console.log("value is " + value.toNumber) });