= ({ now, block, baseFeeDelta }) => {
- {commify(formatEther(totalReward))} Ether
+ {commify(formatEther(totalReward))} {nativeSymbol}
- {commify(formatEther(block.gasUsed.mul(block.baseFeePerGas!)))} Ether
+ {commify(formatEther(block.gasUsed.mul(block.baseFeePerGas!)))}{" "}
+ {nativeSymbol}
diff --git a/src/transaction/Details.tsx b/src/transaction/Details.tsx
index 261e651..e845d5e 100644
--- a/src/transaction/Details.tsx
+++ b/src/transaction/Details.tsx
@@ -46,6 +46,7 @@ import { DevDoc, Metadata, useError, UserDoc } from "../sourcify/useSourcify";
import { RuntimeContext } from "../useRuntime";
import { useContractsMetadata } from "../hooks";
import { useTransactionError } from "../useErigonHooks";
+import { useChainInfo } from "../useChainInfo";
type DetailsProps = {
txData: TransactionData;
@@ -86,6 +87,7 @@ const Details: React.FC = ({
const devMethod = txDesc ? devDoc?.methods[txDesc.signature] : undefined;
const { provider } = useContext(RuntimeContext);
+ const { nativeName, nativeSymbol } = useChainInfo();
const addresses = useMemo(() => {
const _addresses: ChecksummedAddress[] = [];
if (txData.to) {
@@ -264,6 +266,7 @@ const Details: React.FC = ({
@@ -312,7 +315,7 @@ const Details: React.FC = ({