From 539bdf8f0548700df6283dbe20895dd1b6ef26b5 Mon Sep 17 00:00:00 2001 From: Alex1237 <54893307+myz1237@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:19:11 +0700 Subject: [PATCH] feat: enable odos scroll (#683) * feat: enable odos scroll * fix: revert yarn.lock changes * do not add constructor --------- Co-authored-by: Ed Zynda Co-authored-by: Ed Zynda --- config/dexs.json | 3 ++- tasks/generateDiamondABI.ts | 12 +++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/config/dexs.json b/config/dexs.json index bc51ce47d..6f97861ff 100644 --- a/config/dexs.json +++ b/config/dexs.json @@ -594,7 +594,8 @@ "0x98565FcAD2080C5c19C3136fa367cE371cD40bD6", "0x6131b5fae19ea4f9d964eac0408e4408b66337b5", "0x5215E9fd223BC909083fbdB2860213873046e45d", - "0xc02FFcdD914DbA646704439c6090BAbaD521d04C" + "0xc02FFcdD914DbA646704439c6090BAbaD521d04C", + "0xbfe03c9e20a9fc0b37de01a172f207004935e0b1" ], "goerli": [ "0x5215E9fd223BC909083fbdB2860213873046e45d", diff --git a/tasks/generateDiamondABI.ts b/tasks/generateDiamondABI.ts index b4be7d249..472adbc83 100644 --- a/tasks/generateDiamondABI.ts +++ b/tasks/generateDiamondABI.ts @@ -45,11 +45,13 @@ task( // Filters by checking if the name and type of the // function already exists in another ABI fragment const cleanAbi = ( - abi.filter( - (item, index, self) => - index === - self.findIndex((t) => t.name === item.name && t.type === item.type) - ) + abi + .filter( + (item, index, self) => + index === + self.findIndex((t) => t.name === item.name && t.type === item.type) + ) + .filter((item) => item.type !== 'constructor') ) // Write the final ABI to a file