Skip to content

Commit

Permalink
Skip unverified facets
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Sep 14, 2024
1 parent 1d13f84 commit 5a35ceb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/routes/diamond/[address]/json/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
}
Expand Down

0 comments on commit 5a35ceb

Please # to comment.