feat: add rootChainDefaultBlock for checkpoint read
MODIFY
src/interfaces/pos_client_config.ts
src/interfaces/pos_client_config.ts
@@ -8,4 +8,5 @@ export interface IPOSClientConfig extends IBaseClientConfig {
rootChainManager?: string;
rootChain?: string;
erc1155?: IPOSERC1155Address;
+ rootChainDefaultBlock?:string;
}

MODIFY
src/pos/root_chain.ts
src/pos/root_chain.ts
@@ -21,7 +21,7 @@ export class RootChain extends BaseToken<IPOSClientConfig> {
getLastChildBlock() {
return this.method("getLastChildBlock").then(method => {
- return method.read<string>({}, "finalized");
+ return method.read<string>({}, this.client.config.rootChainDefaultBlock);
});
}

feat: add rootChainDefaultBlock for checkpoint read