diff --git a/packages/fcl-ethereum-provider/src/accounts/account-manager.ts b/packages/fcl-ethereum-provider/src/accounts/account-manager.ts index c275a05c0..145fb6c93 100644 --- a/packages/fcl-ethereum-provider/src/accounts/account-manager.ts +++ b/packages/fcl-ethereum-provider/src/accounts/account-manager.ts @@ -1,7 +1,7 @@ -import * as fcl from "@onflow/fcl" +import {currentUser} from "@onflow/fcl" export class AccountManager { - constructor(private user: typeof fcl.currentUser) {} + constructor(private user: typeof currentUser) {} getAccounts(): string[] { // ... get coa address diff --git a/packages/fcl-ethereum-provider/src/create-provider.ts b/packages/fcl-ethereum-provider/src/create-provider.ts index ec0dc8bc9..c481848a4 100644 --- a/packages/fcl-ethereum-provider/src/create-provider.ts +++ b/packages/fcl-ethereum-provider/src/create-provider.ts @@ -1,4 +1,4 @@ -import * as fcl from "@onflow/fcl" +import {currentUser} from "@onflow/fcl" import {Eip1193Provider} from "./types/provider" import {FclEthereumProvider} from "./provider" import {RpcProcessor} from "./rpc/rpc-processor" @@ -26,7 +26,7 @@ import {AccountManager} from "./accounts/account-manager" * ``` */ export function createProvider(config: { - user: typeof fcl.currentUser + user: typeof currentUser service?: Service gateway?: string }): Eip1193Provider {