Skip to content

Commit

Permalink
Merge pull request #935 from Magickbase/filter-metadata-info-out-in-s…
Browse files Browse the repository at this point in the history
…ource-code
  • Loading branch information
Keith-CY authored Apr 27, 2023
2 parents e696ae5 + 955e8cc commit 3f71d5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/ContractInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ const ContractInfo: React.FC<{ address: string; contract: PolyjuiceContractProps
{contract_source_code ? (
<>
{Array.isArray(sourcify_metadata) ? (
sourcify_metadata.slice(1).map(code => {
sourcify_metadata.map(code => {
if (!code.name.endsWith('.sol')) {
return null
}
return (
<div className={styles.sourceCode} key={code.name}>
<div className={styles.title}>
Expand Down

0 comments on commit 3f71d5d

Please sign in to comment.