Skip to content

Commit

Permalink
wasm, react: hotfix for new testnet token mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Oct 29, 2024
1 parent a7584a7 commit 6ed7191
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/core/src/types/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ export class Token {
tokenData.decimals,
)
}
throw new Error(`Token not found for ${ticker}`)
// throw new Error(`Token not found for ${ticker}`)
return new Token(
'UNKNOWN',
'UNKNOWN',
'0x0000000000000000000000000000000000000000',
0,
)
}

static findByAddress(address: Address): Token {
Expand All @@ -63,7 +69,13 @@ export class Token {
tokenData.decimals,
)
}
throw new Error(`Token not found for ${address}`)
// throw new Error(`Token not found for ${address}`)
return new Token(
'UNKNOWN',
'UNKNOWN',
'0x0000000000000000000000000000000000000000',
0,
)
}

static create(
Expand Down

0 comments on commit 6ed7191

Please sign in to comment.