Skip to content

Commit

Permalink
Fix import (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebrianchen authored Jun 20, 2022
1 parent 132121e commit 3388622
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Web3 from "web3";
import { Log, LogsOptions, Transaction } from "web3-core";
import web3CoreSubscriptions, { Subscription } from "web3-core-subscriptions";
import { BlockHeader, Eth, Syncing } from "web3-eth";
import { decodeParameter } from "web3-eth-abi";
import ABIDecoder from "web3-eth-abi";
import { toHex } from "web3-utils";
import {
AssetTransfersParams,
Expand Down Expand Up @@ -329,7 +329,10 @@ function processTokenBalanceResponse(
balance.tokenBalance != null
? {
...balance,
tokenBalance: decodeParameter("uint256", balance.tokenBalance),
tokenBalance: ABIDecoder.decodeParameter(
"uint256",
balance.tokenBalance,
),
}
: balance,
);
Expand Down

0 comments on commit 3388622

Please sign in to comment.