Skip to content

Commit

Permalink
xdefi: tree-shakable lodash import
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnerdhair committed Mar 23, 2022
1 parent 35ee044 commit 5ce70aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hdwallet-xdefi/src/xdefi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as core from "@shapeshiftoss/hdwallet-core";
import * as eth from "./ethereum";
import _ from "lodash";
import isObject from "lodash/isObject";

class XDeFiTransport extends core.Transport {
public async getDeviceID() {
Expand All @@ -11,7 +11,7 @@ class XDeFiTransport extends core.Transport {
}

export function isXDeFi(wallet: core.HDWallet): wallet is XDeFiHDWallet {
return _.isObject(wallet) && (wallet as any)._isXDeFi;
return isObject(wallet) && (wallet as any)._isXDeFi;
}

export class XDeFiHDWallet implements core.HDWallet, core.ETHWallet {
Expand Down

0 comments on commit 5ce70aa

Please sign in to comment.