Fix search by block hash
This commit is contained in:
parent
82b003f29b
commit
288f6c92cd
|
@ -1,3 +1,3 @@
|
|||
export const MIN_API_LEVEL = 6;
|
||||
export const MIN_API_LEVEL = 7;
|
||||
|
||||
export const PAGE_SIZE = 25;
|
||||
|
|
|
@ -39,10 +39,8 @@ export const readBlock = async (
|
|||
) => {
|
||||
let blockPromise: Promise<any>;
|
||||
if (isHexString(blockNumberOrHash, 32)) {
|
||||
// TODO: fix
|
||||
blockPromise = provider.send("eth_getBlockByHash", [
|
||||
blockPromise = provider.send("ots_getBlockDetailsByHash", [
|
||||
blockNumberOrHash,
|
||||
false,
|
||||
]);
|
||||
} else {
|
||||
blockPromise = provider.send("ots_getBlockDetails", [blockNumberOrHash]);
|
||||
|
|
Loading…
Reference in New Issue