Skip to content

Commit

Permalink
Fix: invoice payment with POL/MATIC
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgustavo committed Oct 9, 2024
1 parent a69f026 commit 3bcab6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bitcore-wallet-client/src/lib/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,10 @@ export class Utils {
if (coin.toLowerCase() === chain.toLowerCase()) {
return coin.toUpperCase();
}
// TODO - remove this special case once migration to POL is complete
if (coin.toLowerCase() === 'pol') {
return 'MATIC';
}
const suffix = Constants.EVM_CHAINSUFFIXMAP[chain.toLowerCase()];
const coinIsAChain = !!Constants.EVM_CHAINSUFFIXMAP[coin.toLowerCase()];
if (suffix && (coinIsAChain || chain.toLowerCase() !== 'eth')) {
Expand Down

0 comments on commit 3bcab6b

Please sign in to comment.