- {match === undefined && (
-
Getting data from Sourcify repository...
- )}
- {match === null && (
-
- Address is not a contract or could not find contract metadata in
- Sourcify repository.
-
- )}
- {match !== undefined && match !== null && (
- <>
- {match.metadata.output.abi && (
-
- )}
-
-
- {selected && (
- <>
- {match.metadata.sources[selected].content ? (
-
- ) : (
-
- )}
- >
+ {!scillaCode && (
+
+ {match === undefined && (
+ Getting data from Sourcify repository...
+ )}
+ {match === null && (
+
+ Address is not a contract or could not find contract metadata in
+ Sourcify repository.
+
+ )}
+ {match !== undefined && match !== null && (
+ <>
+ {match.metadata.output.abi && (
+
)}
-
- >
- )}
-
- )}
+
+
+ {selected && (
+ <>
+ {match.metadata.sources[selected].content ? (
+
+ ) : (
+
+ )}
+ >
+ )}
+
+ >
+ )}
+
+ )}
- {code === undefined &&
Getting contract bytecode...}
- { scillaCode &&
}
+ {code === undefined &&
Getting contract bytecode...}
+ {scillaCode &&
}
{!scillaCode && code && (
<>
Contract Bytecode
diff --git a/src/execution/transaction/LogEntry.tsx b/src/execution/transaction/LogEntry.tsx
index 35198516..56dfe693 100644
--- a/src/execution/transaction/LogEntry.tsx
+++ b/src/execution/transaction/LogEntry.tsx
@@ -227,9 +227,10 @@ const LogEntry: FC
= ({ log }) => {
- ) : (
- )}
+ />
+ ) : (
+
+ )}
diff --git a/src/execution/transaction/Logs.tsx b/src/execution/transaction/Logs.tsx
index 505f8232..2eeefb8d 100644
--- a/src/execution/transaction/Logs.tsx
+++ b/src/execution/transaction/Logs.tsx
@@ -10,22 +10,21 @@ type LogsProps = {
const Logs: FC = ({ logs }) => (
- { " " }
- {logs && (
- <>
- {logs.length > 0 ? (
- <>
- {logs.map((l, i) => (
-
- ))}
- >
- ) : (
-
Transaction didn't emit any logs
- )}
- >
-)}
-{ " " }
-
+ {" "}
+ {logs && (
+ <>
+ {logs.length > 0 ? (
+ <>
+ {logs.map((l, i) => (
+
+ ))}
+ >
+ ) : (
+ Transaction didn't emit any logs
+ )}
+ >
+ )}{" "}
+
);
diff --git a/src/search/PendingResults.tsx b/src/search/PendingResults.tsx
index 28d24130..40be4038 100644
--- a/src/search/PendingResults.tsx
+++ b/src/search/PendingResults.tsx
@@ -10,7 +10,7 @@ const PendingResults: React.FC = () => (
diff --git a/src/search/RecentDSBlockItem.tsx b/src/search/RecentDSBlockItem.tsx
index 31bd35ca..724af956 100644
--- a/src/search/RecentDSBlockItem.tsx
+++ b/src/search/RecentDSBlockItem.tsx
@@ -1,8 +1,7 @@
-import { commify } from "../utils/utils";
import { DsBlockObj } from "@zilliqa-js/core/dist/types/src/types";
import DSBlockLink from "../components/DSBlockLink";
import TimestampAge from "../components/TimestampAge";
-import { zilliqaToOtterscanTimestamp } from "../utils/utils";
+import { commify, zilliqaToOtterscanTimestamp } from "../utils/utils";
type DSBlockItemProps = {
block: DsBlockObj;
diff --git a/src/search/RecentDSBlockResultHeader.tsx b/src/search/RecentDSBlockResultHeader.tsx
index f4cf3bd2..9c4890d4 100644
--- a/src/search/RecentDSBlockResultHeader.tsx
+++ b/src/search/RecentDSBlockResultHeader.tsx
@@ -10,4 +10,3 @@ const RecentDSBlockResultHeader: React.FC = () => (
);
export default React.memo(RecentDSBlockResultHeader);
-
diff --git a/src/useErigonHooks.ts b/src/useErigonHooks.ts
index 5057c1f3..97060603 100644
--- a/src/useErigonHooks.ts
+++ b/src/useErigonHooks.ts
@@ -258,7 +258,6 @@ export const useRecentBlocks = (
return { data, isLoading: isLoading || isValidating };
};
-
export const useBlockDataFromTransaction = (
provider: JsonRpcApiProvider | undefined,
txData: TransactionData | null | undefined,
diff --git a/src/useLatestBlock.ts b/src/useLatestBlock.ts
index e32904bc..8ecf32be 100644
--- a/src/useLatestBlock.ts
+++ b/src/useLatestBlock.ts
@@ -4,7 +4,6 @@ import { Block, JsonRpcApiProvider } from "ethers";
import { useEffect, useState } from "react";
import { formatter } from "./utils/formatter";
-
const refreshRate = 30000; // In milliseconds
/**
@@ -46,7 +45,6 @@ export const useLatestBlockHeader = (provider?: JsonRpcApiProvider) => {
return latestBlock;
};
-
/**
* Returns the latest chain information AND hoook an internal listener
* that'll update and trigger a component reder as a side effect every
@@ -137,7 +135,6 @@ export const useBCInfoStateInfo = (
return state;
};
-
/**
* Returns the latest block number AND hook an internal listener
* that'll update and trigger a component render as a side effect
diff --git a/src/useRuntime.ts b/src/useRuntime.ts
index 01ef1950..0d3941c6 100644
--- a/src/useRuntime.ts
+++ b/src/useRuntime.ts
@@ -27,13 +27,11 @@ export type OtterscanRuntime = {
*/
provider?: JsonRpcApiProvider;
-
/**
* Zilliqa object; may be undefined if not ready because of config fetching,
* probing occurring, etc.
*/
zilliqa?: Zilliqa;
-
};
export const useRuntime = (): OtterscanRuntime => {
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index 4dd41a52..2665f2ae 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -1,4 +1,3 @@
-
import { getAddressFromPublicKey } from "@zilliqa-js/crypto";
import { validation } from "@zilliqa-js/util";
@@ -122,4 +121,3 @@ export const pubKeyToAddr: (k: string) => string = (pubKey: string) => {
if (!validation.isPubKey(strippedPubKey)) return "Invalid public key";
else return getAddressFromPublicKey(strippedPubKey).toLowerCase();
};
-