Skip to content

Commit

Permalink
fix: events import
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Oct 3, 2023
1 parent 61a993e commit cd97fd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Web3Provider } from '@ethersproject/providers';
import type { StaticToken } from '@lifi/sdk';
import events from 'events';
import { EventEmitter } from 'events';
import type {
AccountData,
InjectedConnectorArgs,
Expand All @@ -16,7 +16,7 @@ import {
} from '../walletAutomation';
import { isWalletDeactivated } from '../walletPersistance';

export class InjectedConnector extends events.EventEmitter implements Wallet {
export class InjectedConnector extends EventEmitter implements Wallet {
private windowProvider: Provider | undefined;
public isActivationInProgress: boolean = false;
public account: AccountData | undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Web3Provider } from '@ethersproject/providers';
import { SafeAppProvider } from '@safe-global/safe-apps-provider';
import type { SafeInfo } from '@safe-global/safe-apps-sdk';
import SafeAppsSDK from '@safe-global/safe-apps-sdk';
import events from 'events';
import { EventEmitter } from 'events';
import type { AccountData, InjectedConnectorArgs, Wallet } from '../types';

export class SafeWalletConnector extends events.EventEmitter implements Wallet {
export class SafeWalletConnector extends EventEmitter implements Wallet {
public provider: Web3Provider | undefined;

public isActivationInProgress: boolean = false;
Expand Down

0 comments on commit cd97fd1

Please sign in to comment.