From c3ce9db21ded59901db5c94cee99fef2c939df66 Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Wed, 11 Sep 2024 19:13:30 +0300 Subject: [PATCH] Test --- src/routes/diamond/[address]/+page.server.ts | 2 +- src/routes/diamond/[address]/json/+server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/diamond/[address]/+page.server.ts b/src/routes/diamond/[address]/+page.server.ts index fd47753..afac66f 100644 --- a/src/routes/diamond/[address]/+page.server.ts +++ b/src/routes/diamond/[address]/+page.server.ts @@ -101,7 +101,7 @@ const buildFacet = async ( } const fileredAbi: Abi = facet.abi.filter((item) => { - if (item.type !== 'function') return true + if (item.type !== 'function') return false if (!item.outputs) { item.outputs = [] } diff --git a/src/routes/diamond/[address]/json/+server.ts b/src/routes/diamond/[address]/json/+server.ts index f317c99..8b826aa 100644 --- a/src/routes/diamond/[address]/json/+server.ts +++ b/src/routes/diamond/[address]/json/+server.ts @@ -105,7 +105,7 @@ const buildFacet = async ( } const fileredAbi: Abi = facet.abi.filter((item) => { - if (item.type !== 'function') return true + if (item.type !== 'function') return false if (!item.outputs) { item.outputs = [] }