diff --git a/src/web3/parseByteCode.tsx b/src/web3/parseByteCode.tsx index ca7f6a2..a969ca8 100644 --- a/src/web3/parseByteCode.tsx +++ b/src/web3/parseByteCode.tsx @@ -130,10 +130,9 @@ export const DisplaySignature = (props: any = {}) => { if (!parsed || !event || !abi) { return <>—; } - return ( - + <> {event.name}( <> {abi.inputs.map((input: any, i: number) => { @@ -148,18 +147,20 @@ export const DisplaySignature = (props: any = {}) => { parsed[input.name].map((a: any, i: number) => { return ( <> -
+
{i < parsed[input.name].length - 1 && ", "} ); }) - ) : ( -
- ) + ) : parsed[input?.name?.toString()] ? ( +
+ ) : null ) : Array.isArray(parsed[input.name]) ? ( parsed[input.name].join(", ") ) : ( - parsed[input.name].toString() + parsed[input.name] )} {i < abi.inputs.length - 1 ? ", " : null} @@ -167,7 +168,7 @@ export const DisplaySignature = (props: any = {}) => { })} ) - + ); };