convert rootBlockInfo.end, start to string
MODIFY
src/implementation/bn.ts
src/implementation/bn.ts
import { throwNotImplemented } from "..";
import { BaseBigNumber } from "../abstracts";
-export class MaticBigNumber extends BaseBigNumber {
+export class EmptyBigNumber extends BaseBigNumber {
constructor(value) {
super();

MODIFY
src/pos/exit_util.ts
src/pos/exit_util.ts
@@ -108,8 +108,11 @@ export class ExitUtil {
}).then(method => {
return method.read<IRootBlockInfo>();
}).then(rootBlockInfo => {
- rootBlockInfo.blockNumber = rootBlockNumber;
- return rootBlockInfo;
+ return {
+ blockNumber: rootBlockNumber,
+ end: rootBlockInfo.end.toString(),
+ start: rootBlockInfo.start.toString(),
+ } as IRootBlockInfo;
});
}

MODIFY
src/utils/index.ts
src/utils/index.ts
import { BaseWeb3Client, Converter, TYPE_AMOUNT } from "..";
-import { MaticBigNumber } from "../implementation";
+import { EmptyBigNumber } from "../implementation";
export * from "./use";
export * from "./event_bus";
@@ -22,5 +22,5 @@ export * from "./not_implemented";
export const utils = {
converter: Converter,
Web3Client: BaseWeb3Client,
- BN: MaticBigNumber
+ BN: EmptyBigNumber
};
\ No newline at end of file

convert rootBlockInfo.end, start to string