mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
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": {
|
"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) });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user