From 6dcb07b04ece3c4a3f087e6acdf58a4c7a6c947a Mon Sep 17 00:00:00 2001 From: Edward Alvarado Date: Sat, 4 Nov 2023 17:48:36 -0300 Subject: [PATCH] Fix for evm-ethers connection --- packages/paima-sdk/paima-providers/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/paima-sdk/paima-providers/src/utils.ts b/packages/paima-sdk/paima-providers/src/utils.ts index 656f48627..ed7a1c6e9 100644 --- a/packages/paima-sdk/paima-providers/src/utils.ts +++ b/packages/paima-sdk/paima-providers/src/utils.ts @@ -1,7 +1,7 @@ import type { ActiveConnection, GameInfo, IConnector, IProvider } from './IProvider.js'; import assertNever from 'assert-never'; import { AlgorandConnector } from './algorand.js'; -import { EvmInjectedConnector, TruffleConnector } from './evm/index.js'; +import { EthersConnector, EvmInjectedConnector, TruffleConnector } from './evm/index.js'; import { CardanoConnector } from './cardano.js'; import { PolkadotConnector } from './polkadot.js'; @@ -16,7 +16,7 @@ export const enum WalletMode { export const WalletModeMap = { [WalletMode.EvmInjected]: EvmInjectedConnector.instance(), - [WalletMode.EvmEthers]: EvmInjectedConnector.instance(), + [WalletMode.EvmEthers]: EthersConnector.instance(), [WalletMode.EvmTruffle]: TruffleConnector.instance(), [WalletMode.Cardano]: CardanoConnector.instance(), [WalletMode.Polkadot]: PolkadotConnector.instance(),