From dcedc8a01b40a1bdb3c6e2ebda08f6e600243047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Riquelme=20Guzm=C3=A1n?= Date: Tue, 10 Sep 2024 00:29:05 -0300 Subject: [PATCH] fix: import for utils on core package --- packages/core/src/multicall.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/core/src/multicall.ts b/packages/core/src/multicall.ts index 1cc1fac31..4c15fe66a 100644 --- a/packages/core/src/multicall.ts +++ b/packages/core/src/multicall.ts @@ -4,8 +4,7 @@ import { FeeHandlerRouter__factory, } from '@buildwithsygma/sygma-contracts'; import { Web3Provider } from '@ethersproject/providers'; -import { Contract } from 'ethers'; -import { defaultAbiCoder } from 'ethers/lib/utils'; +import { Contract, utils } from 'ethers'; import MulticallAbi from './abi/Multicall.json'; import type { Eip1193Provider, FeeHandlerType, RouteIndexerType } from './types.js'; @@ -232,7 +231,7 @@ export async function getFeeHandlerAddressesOfRoutes(params: { destination.set( route.resourceId, - defaultAbiCoder.decode(['address'], results.returnData[idx]).toString(), + utils.defaultAbiCoder.decode(['address'], results.returnData[idx]).toString(), ); }); @@ -279,7 +278,7 @@ export async function getFeeHandlerTypeOfRoutes(params: { } } - const feeHandlerType = defaultAbiCoder.decode( + const feeHandlerType = utils.defaultAbiCoder.decode( ['string'], results.returnData[idx], )[0] as unknown as FeeHandlerType;