From 2fcded44291e6bec56c6e877c83fc62bccb41ec4 Mon Sep 17 00:00:00 2001 From: Jan Nanista Date: Mon, 27 Nov 2023 15:01:51 -0800 Subject: [PATCH] chore: Remove reconnection from OmniGraphBuilderHardhat --- .../test/builder.test.ts | 22 ++----------------- .../src/omnigraph/builder.ts | 9 +------- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/packages/ua-utils-evm-hardhat-test/test/builder.test.ts b/packages/ua-utils-evm-hardhat-test/test/builder.test.ts index 9659c49ae..9457e5a18 100644 --- a/packages/ua-utils-evm-hardhat-test/test/builder.test.ts +++ b/packages/ua-utils-evm-hardhat-test/test/builder.test.ts @@ -33,16 +33,7 @@ describe('builder', () => { config: undefined, }, ], - connections: [ - { - vector: { from: vengaboysPoint, to: britneyPoint }, - config: undefined, - }, - { - vector: { from: britneyPoint, to: vengaboysPoint }, - config: undefined, - }, - ], + connections: [], }) }) @@ -78,16 +69,7 @@ describe('builder', () => { config: undefined, }, ], - connections: [ - { - vector: { from: vengaboysPoint, to: britneyPoint }, - config: undefined, - }, - { - vector: { from: britneyPoint, to: vengaboysPoint }, - config: undefined, - }, - ], + connections: [], }) }) }) diff --git a/packages/ua-utils-evm-hardhat/src/omnigraph/builder.ts b/packages/ua-utils-evm-hardhat/src/omnigraph/builder.ts index 77900d500..2f8777417 100644 --- a/packages/ua-utils-evm-hardhat/src/omnigraph/builder.ts +++ b/packages/ua-utils-evm-hardhat/src/omnigraph/builder.ts @@ -3,8 +3,6 @@ import type { HardhatRuntimeEnvironment } from 'hardhat/types' import { OmniGraphBuilder } from '@layerzerolabs/ua-utils' import { createNetworkLogger, getNetworkRuntimeEnvironment } from '@layerzerolabs/utils-evm-hardhat' import { contractNameToPoint } from './coordinates' -import { vectorFromNodes } from '@layerzerolabs/ua-utils' -import { ignoreLoopback } from '@layerzerolabs/ua-utils' export class OmniGraphBuilderHardhat extends OmniGraphBuilder { static async fromDeployedContract( @@ -30,11 +28,6 @@ export class OmniGraphBuilderHardhat extends OmniGraph builder.addNodes({ point, config: undefined }) } - return builder.reconnect( - ignoreLoopback((from, to) => ({ - vector: vectorFromNodes(from, to), - config: undefined, - })) - ) + return builder } }