Merge branch 'develop' into feature/trace-tx

This commit is contained in:
Willian Mitsuda 2021-11-19 14:58:41 -03:00
commit 26600afdb6
4 changed files with 17 additions and 11 deletions

14
package-lock.json generated
View File

@ -27,7 +27,7 @@
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.24",
"@types/node": "^14.17.5",
"@types/react": "^17.0.34",
"@types/react": "^17.0.35",
"@types/react-blockies": "^1.4.1",
"@types/react-dom": "^17.0.11",
"@types/react-highlight": "^0.12.5",
@ -3127,9 +3127,9 @@
"license": "MIT"
},
"node_modules/@types/react": {
"version": "17.0.34",
"resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.34.tgz",
"integrity": "sha512-46FEGrMjc2+8XhHXILr+3+/sTe3OfzSPU9YGKILLrUYbQ1CLQC9Daqo1KzENGXAWwrFwiY0l4ZbF20gRvgpWTg==",
"version": "17.0.35",
"resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.35.tgz",
"integrity": "sha512-r3C8/TJuri/SLZiiwwxQoLAoavaczARfT9up9b4Jr65+ErAUX3MIkU0oMOQnrpfgHme8zIqZLX7O5nnjm5Wayw==",
"dependencies": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@ -21607,9 +21607,9 @@
"version": "1.5.4"
},
"@types/react": {
"version": "17.0.34",
"resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.34.tgz",
"integrity": "sha512-46FEGrMjc2+8XhHXILr+3+/sTe3OfzSPU9YGKILLrUYbQ1CLQC9Daqo1KzENGXAWwrFwiY0l4ZbF20gRvgpWTg==",
"version": "17.0.35",
"resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.35.tgz",
"integrity": "sha512-r3C8/TJuri/SLZiiwwxQoLAoavaczARfT9up9b4Jr65+ErAUX3MIkU0oMOQnrpfgHme8zIqZLX7O5nnjm5Wayw==",
"requires": {
"@types/prop-types": "*",
"@types/scheduler": "*",

View File

@ -22,7 +22,7 @@
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.24",
"@types/node": "^14.17.5",
"@types/react": "^17.0.34",
"@types/react": "^17.0.35",
"@types/react-blockies": "^1.4.1",
"@types/react-dom": "^17.0.11",
"@types/react-highlight": "^0.12.5",

View File

@ -1,4 +1,5 @@
import React from "react";
import { NavLink } from "react-router-dom";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faStar } from "@fortawesome/free-solid-svg-icons/faStar";
import { faBomb } from "@fortawesome/free-solid-svg-icons/faBomb";
@ -75,7 +76,10 @@ const DecoratedAddressLink: React.FC<DecoratedAddressLinkProps> = ({
</span>
)}
{metadata && (
<span className="self-center flex-shrink-0 flex items-center">
<NavLink
className="self-center flex-shrink-0 flex items-center"
to={`/address/${address}/contract`}
>
<img
src={SourcifyLogo}
alt="Sourcify logo"
@ -83,7 +87,7 @@ const DecoratedAddressLink: React.FC<DecoratedAddressLinkProps> = ({
width={16}
height={16}
/>
</span>
</NavLink>
)}
<AddressOrENSName
address={address}

View File

@ -17,7 +17,7 @@ type DecodedParamRowProps = {
paramType: ParamType;
arrayElem?: number | undefined;
help?: string | undefined;
resolvedAddresses?: ResolvedAddresses | undefined;
resolvedAddresses: ResolvedAddresses | undefined;
};
const DecodedParamRow: React.FC<DecodedParamRowProps> = ({
@ -102,6 +102,7 @@ const DecodedParamRow: React.FC<DecodedParamRowProps> = ({
i={idx}
r={e}
paramType={paramType.components[idx]}
resolvedAddresses={resolvedAddresses}
/>
))}
{paramType.baseType === "array" &&
@ -112,6 +113,7 @@ const DecodedParamRow: React.FC<DecodedParamRowProps> = ({
r={e}
paramType={paramType.arrayChildren}
arrayElem={idx}
resolvedAddresses={resolvedAddresses}
/>
))}
</>