Skip to content

Commit 3f71d5d

Browse files
authored
Merge pull request #935 from Magickbase/filter-metadata-info-out-in-source-code
2 parents e696ae5 + 955e8cc commit 3f71d5d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

components/ContractInfo/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,10 @@ const ContractInfo: React.FC<{ address: string; contract: PolyjuiceContractProps
216216
{contract_source_code ? (
217217
<>
218218
{Array.isArray(sourcify_metadata) ? (
219-
sourcify_metadata.slice(1).map(code => {
219+
sourcify_metadata.map(code => {
220+
if (!code.name.endsWith('.sol')) {
221+
return null
222+
}
220223
return (
221224
<div className={styles.sourceCode} key={code.name}>
222225
<div className={styles.title}>

0 commit comments

Comments
 (0)