diff --git a/src/transaction/DecodedParamsTable.tsx b/src/transaction/DecodedParamsTable.tsx index 1d79347..fca7a81 100644 --- a/src/transaction/DecodedParamsTable.tsx +++ b/src/transaction/DecodedParamsTable.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { LogDescription, ParamType, Result } from "@ethersproject/abi"; +import { ParamType, Result } from "@ethersproject/abi"; import AddressHighlighter from "../components/AddressHighlighter"; import DecoratedAddressLink from "../components/DecoratedAddressLink"; import Copy from "../components/Copy"; @@ -51,6 +51,14 @@ const DecodedParamsTable: React.FC = ({ {r.toString()} + ) : paramTypes[i].type === "bytes" ? ( + + {r.toString()}{" "} + + {r.toString().length / 2 - 1}{" "} + {r.toString().length / 2 - 1 === 1 ? "byte" : "bytes"} + + ) : ( r.toString() )}