Skip to content

Commit

Permalink
Aug 23, 2024, 1:47 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 23, 2024
1 parent 82e3584 commit aae0e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/balance-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AnyApi } from "@acala-network/sdk-core";
import { Observable } from "@polkadot/types/types";

import { ChainId, chains } from "./configs";
import { TokenNotFound } from "./errors";
// import { TokenNotFound } from "./errors";
import { BalanceData, BasicToken, ExtendedToken, FN, Relay, TokenData } from "./types";
import { createBasicTokenFromAsset, createExtendedTokenFromAsset, createTokenDataFromAsset, getAssetRegistryObject, getRelayForChainId } from "./custom-utils";

Expand Down Expand Up @@ -40,7 +40,7 @@ export abstract class BalanceAdapter {
if (!tokenConfig){
// If asset id not passed in
// if(!tokenId) throw new TokenNotFound(token, this.chain);
if(!tokenId) throw new Error(`Token Config not found for ${token} on ${this.chain}. Token ID was not passed to getToken()`)
if(!tokenId) throw new Error(`Token Config not found for ${token} on ${this.chain}. Token ID was not passed to getToken() | ${tokenId}`)
// Get chain number
const paraId = chains[this.chain].paraChainId
let relay: Relay = getRelayForChainId(this.chain)
Expand Down

0 comments on commit aae0e44

Please sign in to comment.