diff --git a/components/ContractInfo/index.tsx b/components/ContractInfo/index.tsx index b4f1bdd1..cd40c27b 100644 --- a/components/ContractInfo/index.tsx +++ b/components/ContractInfo/index.tsx @@ -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 (