1 parent 2932ed5 commit 955e8ccCopy full SHA for 955e8cc
1 file changed
components/ContractInfo/index.tsx
@@ -216,7 +216,10 @@ const ContractInfo: React.FC<{ address: string; contract: PolyjuiceContractProps
216
{contract_source_code ? (
217
<>
218
{Array.isArray(sourcify_metadata) ? (
219
- sourcify_metadata.slice(1).map(code => {
+ sourcify_metadata.map(code => {
220
+ if (!code.name.endsWith('.sol')) {
221
+ return null
222
+ }
223
return (
224
<div className={styles.sourceCode} key={code.name}>
225
<div className={styles.title}>
0 commit comments