diff --git a/src/address/ContractABI.tsx b/src/address/ContractABI.tsx index 086d92c..edd713c 100644 --- a/src/address/ContractABI.tsx +++ b/src/address/ContractABI.tsx @@ -12,7 +12,11 @@ type ContractABIProps = { const ContractABI: React.FC = ({ abi }) => (
- + +
+ ABI + +
Decoded Raw
@@ -21,10 +25,6 @@ const ContractABI: React.FC = ({ abi }) => ( -
- ABI - -
diff --git a/src/address/DecodedABI.tsx b/src/address/DecodedABI.tsx index 1de994d..587538a 100644 --- a/src/address/DecodedABI.tsx +++ b/src/address/DecodedABI.tsx @@ -9,7 +9,7 @@ type DecodedABIProps = { const DecodedABI: React.FC = ({ abi }) => { const intf = new Interface(abi); return ( -
+
{intf.fragments.map((f, i) => ( ))} diff --git a/src/address/DecodedFragment.tsx b/src/address/DecodedFragment.tsx index 33e694c..991865a 100644 --- a/src/address/DecodedFragment.tsx +++ b/src/address/DecodedFragment.tsx @@ -6,6 +6,8 @@ import { FunctionFragment, Interface, } from "@ethersproject/abi"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { faCaretRight } from "@fortawesome/free-solid-svg-icons/faCaretRight"; type DecodedFragmentProps = { intf: Interface; @@ -34,7 +36,10 @@ const DecodedFragment: React.FC = ({ } return ( -
+
+ + + {letter && (