Update README.md
This commit is contained in:
parent
09e51e35a1
commit
5752a22ac1
|
@ -212,7 +212,7 @@ Contracts addresses can be defined, If an address is defined the contract wouldn
|
|||
},
|
||||
"UserManagement": {
|
||||
"args": [
|
||||
"\$UserStorage"
|
||||
"$UserStorage"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -226,6 +226,10 @@ EmbarkJS
|
|||
|
||||
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
|
||||
var myContract = new EmbarkJS.Contract({abi: abiObject, address: "0x123"});
|
||||
myContract.get().then(function(value) { console.log("value is " + value.toNumber) });
|
||||
|
|
Loading…
Reference in New Issue