fix: add getter for store in baseclient

This commit is contained in:
Derrick Hammer 2023-07-11 01:01:10 -04:00
parent 836a8429c7
commit 3a48a52a53
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,6 @@ export default abstract class BaseClient {
protected booted = false;
private syncMutex = new Mutex();
protected options: BaseClientOptions;
protected;
constructor(options: BaseClientOptions) {
this.options = options;
@ -86,6 +85,10 @@ export default abstract class BaseClient {
this.syncMutex.release();
}
public get store(): IStore {
return this.options.store as IStore;
}
// committee and prover index of the first honest prover
protected abstract syncFromGenesis(): Promise<Uint8Array[]>;