From 03ab27bdfc165271081a967d35e747fbe9ae13a8 Mon Sep 17 00:00:00 2001 From: danielailie Date: Mon, 25 Nov 2024 10:40:22 +0200 Subject: [PATCH] Fix tests --- src/abi/resultsParser.spec.ts | 2 +- src/networkProviders/providers.dev.net.spec.ts | 2 +- .../smartContractTransactionsOutcomeParser.spec.ts | 2 +- src/testutils/contractController.ts | 2 +- src/testutils/networkProviders.ts | 2 +- src/transactionWatcher.spec.ts | 2 +- src/transactionsOutcomeParsers/resources.spec.ts | 2 +- src/transactionsOutcomeParsers/transactionEventsParser.spec.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/abi/resultsParser.spec.ts b/src/abi/resultsParser.spec.ts index fb5c9c11..7ce44130 100644 --- a/src/abi/resultsParser.spec.ts +++ b/src/abi/resultsParser.spec.ts @@ -5,7 +5,7 @@ import { ContractQueryResponse } from "../networkProviders"; import { b64TopicsToBytes, loadAbiRegistry } from "../testutils"; import { TransactionEvent } from "../transactionEvents"; import { TransactionLogs } from "../transactionLogs"; -import { TransactionOnNetwork } from "../transactions"; +import { TransactionOnNetwork } from "../transactionOnNetwork"; import { SmartContractResult } from "../transactionsOutcomeParsers"; import { ArgSerializer } from "./argSerializer"; import { ResultsParser } from "./resultsParser"; diff --git a/src/networkProviders/providers.dev.net.spec.ts b/src/networkProviders/providers.dev.net.spec.ts index d4280541..56a2f654 100644 --- a/src/networkProviders/providers.dev.net.spec.ts +++ b/src/networkProviders/providers.dev.net.spec.ts @@ -3,7 +3,7 @@ import { assert } from "chai"; import { Address } from "../address"; import { b64ToHex } from "../testutils"; import { MockQuery } from "../testutils/dummyQuery"; -import { TransactionOnNetwork } from "../transactions"; +import { TransactionOnNetwork } from "../transactionOnNetwork"; import { ApiNetworkProvider } from "./apiNetworkProvider"; import { INetworkProvider, ITransactionNext } from "./interface"; import { ProxyNetworkProvider } from "./proxyNetworkProvider"; diff --git a/src/smartContracts/smartContractTransactionsOutcomeParser.spec.ts b/src/smartContracts/smartContractTransactionsOutcomeParser.spec.ts index 87f34114..e49e1083 100644 --- a/src/smartContracts/smartContractTransactionsOutcomeParser.spec.ts +++ b/src/smartContracts/smartContractTransactionsOutcomeParser.spec.ts @@ -4,7 +4,7 @@ import { Address } from "../address"; import { b64TopicsToBytes, loadAbiRegistry } from "../testutils"; import { TransactionEvent } from "../transactionEvents"; import { TransactionLogs } from "../transactionLogs"; -import { TransactionOnNetwork } from "../transactions"; +import { TransactionOnNetwork } from "../transactionOnNetwork"; import { SmartContractResult } from "../transactionsOutcomeParsers"; import { SmartContractTransactionsOutcomeParser } from "./smartContractTransactionsOutcomeParser"; diff --git a/src/testutils/contractController.ts b/src/testutils/contractController.ts index fe260423..18f3f9e4 100644 --- a/src/testutils/contractController.ts +++ b/src/testutils/contractController.ts @@ -1,7 +1,7 @@ import { Interaction, ResultsParser, TypedOutcomeBundle, UntypedOutcomeBundle } from "../abi"; import { Logger } from "../logger"; import { Transaction } from "../transaction"; -import { TransactionOnNetwork } from "../transactions"; +import { TransactionOnNetwork } from "../transactionOnNetwork"; import { TransactionWatcher } from "../transactionWatcher"; import { INetworkProvider } from "./networkProviders"; diff --git a/src/testutils/networkProviders.ts b/src/testutils/networkProviders.ts index 288a2ba7..e75ffa19 100644 --- a/src/testutils/networkProviders.ts +++ b/src/testutils/networkProviders.ts @@ -4,7 +4,7 @@ import { IAccountOnNetwork, IContractQueryResponse, INetworkConfig, ITransaction import { ApiNetworkProvider, ProxyNetworkProvider } from "../networkProviders"; import { Transaction } from "../transaction"; -import { TransactionOnNetwork } from "../transactions"; +import { TransactionOnNetwork } from "../transactionOnNetwork"; export function createLocalnetProvider(): INetworkProvider { return new ProxyNetworkProvider("http://localhost:7950", { timeout: 5000 }); diff --git a/src/transactionWatcher.spec.ts b/src/transactionWatcher.spec.ts index f459d724..f5161f4a 100644 --- a/src/transactionWatcher.spec.ts +++ b/src/transactionWatcher.spec.ts @@ -1,7 +1,7 @@ import { assert } from "chai"; import { MarkCompleted, MockNetworkProvider, Wait } from "./testutils"; import { TransactionHash } from "./transaction"; -import { TransactionOnNetwork } from "./transactions"; +import { TransactionOnNetwork } from "./transactionOnNetwork"; import { TransactionStatus } from "./transactionStatus"; import { TransactionWatcher } from "./transactionWatcher"; diff --git a/src/transactionsOutcomeParsers/resources.spec.ts b/src/transactionsOutcomeParsers/resources.spec.ts index c2290393..8aa37074 100644 --- a/src/transactionsOutcomeParsers/resources.spec.ts +++ b/src/transactionsOutcomeParsers/resources.spec.ts @@ -1,7 +1,7 @@ import { assert } from "chai"; import { TransactionEvent } from "../transactionEvents"; import { TransactionLogs } from "../transactionLogs"; -import { TransactionOnNetwork } from "../transactions"; +import { TransactionOnNetwork } from "../transactionOnNetwork"; import { findEventsByFirstTopic, findEventsByIdentifier, SmartContractResult } from "./resources"; describe("test resources", () => { diff --git a/src/transactionsOutcomeParsers/transactionEventsParser.spec.ts b/src/transactionsOutcomeParsers/transactionEventsParser.spec.ts index 30bbe674..d5fb21d2 100644 --- a/src/transactionsOutcomeParsers/transactionEventsParser.spec.ts +++ b/src/transactionsOutcomeParsers/transactionEventsParser.spec.ts @@ -5,7 +5,7 @@ import { Address } from "../address"; import { b64TopicsToBytes, loadAbiRegistry } from "../testutils"; import { TransactionEvent } from "../transactionEvents"; import { TransactionLogs } from "../transactionLogs"; -import { TransactionOnNetwork } from "../transactions"; +import { TransactionOnNetwork } from "../transactionOnNetwork"; import { findEventsByFirstTopic, SmartContractResult } from "./resources"; import { TransactionEventsParser } from "./transactionEventsParser";