From 427a1f7ec88a3ad5ba8ef8a966af98ec9130080f Mon Sep 17 00:00:00 2001 From: Mark Nardi Date: Mon, 6 May 2024 17:57:40 +0200 Subject: [PATCH] fix tests --- .../core/wallet/tests/getOutputParameters.test.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/packages/shared/src/lib/core/wallet/tests/getOutputParameters.test.ts b/packages/shared/src/lib/core/wallet/tests/getOutputParameters.test.ts index fcfe5ffefd..3124ad73a5 100644 --- a/packages/shared/src/lib/core/wallet/tests/getOutputParameters.test.ts +++ b/packages/shared/src/lib/core/wallet/tests/getOutputParameters.test.ts @@ -1,5 +1,6 @@ import { FALLBACK_ESTIMATED_GAS } from '@core/layer-2/constants' import { TESTNET_EVM_CHAIN_CONFIGURATION, SupportedNetworkId } from '@core/network/constants' +import { IscChain } from '@core/network/classes' import { getOutputParameters } from '../utils' import { ReturnStrategy, SubjectType } from '../enums' import { IToken, IPersistedToken } from '@core/token/interfaces' @@ -32,19 +33,7 @@ const nativeTokenAsset: IToken = { verification: { verified: true, status: VerifiedStatus.SelfVerified }, } -const destinationNetwork = { - ...TESTNET_EVM_CHAIN_CONFIGURATION, - getMetadata() { - return { - gasFeePolicy: { - gasPerToken: { - a: 1, - b: 1, - }, - }, - } - }, -} +const destinationNetwork = new IscChain(TESTNET_EVM_CHAIN_CONFIGURATION) const nftId = '0xcd9430ff870a22f81f92428e5c06975fa3ec1a993331aa3db9fb2298e931ade1' const surplus = '50000'