*add ready api method
This commit is contained in:
parent
246ed98628
commit
af1c52d5b4
|
@ -21,6 +21,7 @@ let client: Client;
|
|||
let rpc: RpcNetwork;
|
||||
|
||||
addHandler("presentSeed", handlePresentSeed);
|
||||
addHandler("ready", handleReady);
|
||||
|
||||
[
|
||||
"eth_getBalance",
|
||||
|
@ -205,6 +206,12 @@ async function setup() {
|
|||
await client.sync();
|
||||
}
|
||||
|
||||
async function handleReady(aq:ActiveQuery){
|
||||
await moduleReady;
|
||||
|
||||
aq.respond();
|
||||
}
|
||||
|
||||
function mapToObj(map: Map<any, any> | undefined): Object | undefined {
|
||||
if (!map) return undefined;
|
||||
|
||||
|
|
Loading…
Reference in New Issue