From a301af0f684f77386cb186cbbfedaf5cef978d67 Mon Sep 17 00:00:00 2001 From: Kamil Pyszkowski Date: Tue, 31 Oct 2023 17:34:09 +0100 Subject: [PATCH] Fix typo error Fixed error while declaring EthereumWalletRegistry instance. Error caused using Mainnet contracts on Goerli chain resulting with error when SDK is consumed with an entrypoint. --- typescript/src/lib/ethereum/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/typescript/src/lib/ethereum/index.ts b/typescript/src/lib/ethereum/index.ts index d61c7eaad..bf0764926 100644 --- a/typescript/src/lib/ethereum/index.ts +++ b/typescript/src/lib/ethereum/index.ts @@ -1,10 +1,10 @@ -import { TBTCContracts } from "../contracts" import { providers, Signer } from "ethers" +import { TBTCContracts } from "../contracts" +import { EthereumAddress } from "./address" import { EthereumBridge } from "./bridge" -import { EthereumWalletRegistry } from "./wallet-registry" import { EthereumTBTCToken } from "./tbtc-token" import { EthereumTBTCVault } from "./tbtc-vault" -import { EthereumAddress } from "./address" +import { EthereumWalletRegistry } from "./wallet-registry" export * from "./address" export * from "./bridge" @@ -96,7 +96,7 @@ export async function loadEthereumContracts( const tbtcVault = new EthereumTBTCVault({ signerOrProvider: signer }, network) const walletRegistry = new EthereumWalletRegistry( { signerOrProvider: signer }, - "mainnet" + network ) const bridgeWalletRegistry = await bridge.walletRegistry()