Skip to content

Commit 6813e6d

Browse files
authored
Merge pull request #6709 from BitGo/fix-suffix
fix: fix the suffix for ofc coins
2 parents 3546c77 + b3e0092 commit 6813e6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/statics/src/ofc.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ export function ofcAlgoToken(
540540
kind: CoinKind = CoinKind.CRYPTO,
541541
features: CoinFeature[] = OfcCoin.DEFAULT_FEATURES,
542542
prefix = '',
543-
suffix: string = name.toUpperCase(),
543+
suffix: string = name.replace(/^ofc/, '').toUpperCase(),
544544
network: OfcNetwork = Networks.main.ofc,
545545
isToken = true,
546546
addressCoin = 'algo',
@@ -590,7 +590,7 @@ export function tofcAlgoToken(
590590
kind: CoinKind = CoinKind.CRYPTO,
591591
features: CoinFeature[] = OfcCoin.DEFAULT_FEATURES,
592592
prefix = '',
593-
suffix: string = name.toUpperCase(),
593+
suffix: string = name.replace(/^ofc/, '').toUpperCase(),
594594
network: OfcNetwork = Networks.test.ofc,
595595
isToken = true,
596596
addressCoin = 'talgo',
@@ -641,7 +641,7 @@ export function ofcHederaToken(
641641
kind: CoinKind = CoinKind.CRYPTO,
642642
features: CoinFeature[] = OfcCoin.DEFAULT_FEATURES,
643643
prefix = '',
644-
suffix: string = name.toUpperCase(),
644+
suffix: string = name.replace(/^ofc/, '').toUpperCase(),
645645
network: OfcNetwork = Networks.main.ofc,
646646
isToken = true,
647647
addressCoin = 'hbar',
@@ -691,7 +691,7 @@ export function tofcHederaToken(
691691
kind: CoinKind = CoinKind.CRYPTO,
692692
features: CoinFeature[] = OfcCoin.DEFAULT_FEATURES,
693693
prefix = '',
694-
suffix: string = name.toUpperCase(),
694+
suffix: string = name.replace(/^ofc/, '').toUpperCase(),
695695
network: OfcNetwork = Networks.test.ofc,
696696
isToken = true,
697697
addressCoin = 'thbar',

0 commit comments

Comments
 (0)