Skip to content

Commit

Permalink
Aug 5, 2024, 4:32 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 5, 2024
1 parent 581e3c8 commit db0f6dd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/balance-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ export abstract class BalanceAdapter {

// If token not ibn bridge database, check for asset in our asset registry. if it exists, create a new BasicToken with the appropriate values

if (!tokenConfig) throw new TokenNotFound(token, this.chain);
// Get chain number
const paraID = chains[this.chain].paraChainId
if (!tokenConfig){
// Get chain number
const paraID = chains[this.chain].paraChainId

// get asset registry object by chain and id

throw new TokenNotFound(token, this.chain);
}



return tokenConfig as R;
Expand Down

0 comments on commit db0f6dd

Please sign in to comment.