dep: update module hash
This commit is contained in:
parent
911bd058d5
commit
f889afbdba
11
src/index.ts
11
src/index.ts
|
@ -8,7 +8,7 @@ import { RpcQueryOptions } from "@lumeweb/rpc-client";
|
||||||
import { Buffer } from "buffer";
|
import { Buffer } from "buffer";
|
||||||
import { Client, factory } from "@lumeweb/libkernel/module";
|
import { Client, factory } from "@lumeweb/libkernel/module";
|
||||||
|
|
||||||
const RPC_MODULE = "fAAKlPuoD2FgKq27nhNILSmf7nTYmI9mMmOfTujwXma-1g";
|
const MODULE = "zduP1ZfjVbyTrNuJ6aCsRVSNkd4G26BEdZ9RpThBjcmfKfM2pG2YWLVubD-1g";
|
||||||
|
|
||||||
export class RpcNetwork extends Client {
|
export class RpcNetwork extends Client {
|
||||||
private _def: boolean;
|
private _def: boolean;
|
||||||
|
@ -29,7 +29,7 @@ export class RpcNetwork extends Client {
|
||||||
this._networkId = 1;
|
this._networkId = 1;
|
||||||
} else {
|
} else {
|
||||||
Promise.resolve()
|
Promise.resolve()
|
||||||
.then(() => this.callModuleReturn(RPC_MODULE, "createNetwork"))
|
.then(() => this.callModuleReturn(MODULE, "createNetwork"))
|
||||||
.then((ret: ErrTuple) => (this._networkId = ret[0]));
|
.then((ret: ErrTuple) => (this._networkId = ret[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,8 +131,5 @@ export class SimpleRpcQuery extends RpcQueryBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createClient = factory<RpcNetwork>(RpcNetwork, RPC_MODULE);
|
export const createClient = factory<RpcNetwork>(RpcNetwork, MODULE);
|
||||||
const createSimpleRpcQuery = factory<SimpleRpcQuery>(
|
const createSimpleRpcQuery = factory<SimpleRpcQuery>(SimpleRpcQuery, MODULE);
|
||||||
SimpleRpcQuery,
|
|
||||||
RPC_MODULE,
|
|
||||||
);
|
|
||||||
|
|
Loading…
Reference in New Issue