From 5a35ceb4cfda402363468f5eaf2d0a000e650921 Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Sat, 14 Sep 2024 19:48:19 +0300 Subject: [PATCH] Skip unverified facets --- src/routes/diamond/[address]/json/+server.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/routes/diamond/[address]/json/+server.ts b/src/routes/diamond/[address]/json/+server.ts index 8b826aa..5ca4384 100644 --- a/src/routes/diamond/[address]/json/+server.ts +++ b/src/routes/diamond/[address]/json/+server.ts @@ -97,15 +97,16 @@ const buildFacet = async ( const abiSigs = [] if (!facet.abi.length) { - for (const s of selectors) { - const sig = await getFuncSigBySelector(s) - abiSigs.push(`function ${sig}`) - } - facet.abi = parseAbi(abiSigs) + return + // for (const s of selectors) { + // const sig = await getFuncSigBySelector(s) + // abiSigs.push(`function ${sig}`) + // } + // facet.abi = parseAbi(abiSigs) } const fileredAbi: Abi = facet.abi.filter((item) => { - if (item.type !== 'function') return false + if (item.type !== 'function') return true if (!item.outputs) { item.outputs = [] }