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;
|
export const PAGE_SIZE = 25;
|
||||||
|
|
|
@ -39,10 +39,8 @@ export const readBlock = async (
|
||||||
) => {
|
) => {
|
||||||
let blockPromise: Promise<any>;
|
let blockPromise: Promise<any>;
|
||||||
if (isHexString(blockNumberOrHash, 32)) {
|
if (isHexString(blockNumberOrHash, 32)) {
|
||||||
// TODO: fix
|
blockPromise = provider.send("ots_getBlockDetailsByHash", [
|
||||||
blockPromise = provider.send("eth_getBlockByHash", [
|
|
||||||
blockNumberOrHash,
|
blockNumberOrHash,
|
||||||
false,
|
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
blockPromise = provider.send("ots_getBlockDetails", [blockNumberOrHash]);
|
blockPromise = provider.send("ots_getBlockDetails", [blockNumberOrHash]);
|
||||||
|
|
Loading…
Reference in New Issue