fix: presentSeed needs to be presentKey
This commit is contained in:
parent
4e7ff8774d
commit
a74b2d416e
|
@ -27,12 +27,12 @@ let moduleReady: Promise<void> = new Promise((resolve) => {
|
||||||
|
|
||||||
const networkInstances = new Map<number, RpcNetwork>();
|
const networkInstances = new Map<number, RpcNetwork>();
|
||||||
|
|
||||||
addHandler("presentSeed", handlePresentSeed);
|
addHandler("presentKey", handlePresentKey);
|
||||||
addHandler("createNetwork", handleCreateNetwork);
|
addHandler("createNetwork", handleCreateNetwork);
|
||||||
addHandler("simpleQuery", handleSimpleQuery);
|
addHandler("simpleQuery", handleSimpleQuery);
|
||||||
addHandler("ready", handleReady);
|
addHandler("ready", handleReady);
|
||||||
|
|
||||||
async function handlePresentSeed() {
|
async function handlePresentKey() {
|
||||||
if (!defaultNetwork) {
|
if (!defaultNetwork) {
|
||||||
defaultNetwork = networkInstances.get(await createNetwork()) as RpcNetwork;
|
defaultNetwork = networkInstances.get(await createNetwork()) as RpcNetwork;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue