Skip to content

Commit

Permalink
Remove properties eth,contract,provider from TokenTracker class (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat authored Apr 22, 2024
1 parent d2fc410 commit 708867a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ class TokenTracker extends SafeEventEmitter {

this.includeFailedTokens = opts.includeFailedTokens || false
this.userAddress = opts.userAddress || '0x0'
this.provider = opts.provider
const pollingInterval = opts.pollingInterval || 4000
this.blockTracker = new PollingBlockTracker({
provider: this.provider,
provider: opts.provider,
pollingInterval,
})

this.eth = new Eth(this.provider)
this.contract = new EthContract(this.eth)
this.TokenContract = this.contract(abi)
const eth = new Eth(opts.provider)
const contract = new EthContract(eth)
this.TokenContract = contract(abi)

const tokens = opts.tokens || []
this.balanceDecimals = opts.balanceDecimals
Expand Down

0 comments on commit 708867a

Please sign in to comment.