From 477ffdc55f6b0560e2efcacf44a7be5a088af01c Mon Sep 17 00:00:00 2001 From: ArunBala-Bitgo Date: Thu, 11 Jun 2026 11:54:31 +0530 Subject: [PATCH] fix(statics): correct FLRP P-chain explorer transaction URLs Update FlareP and FlarePTestnet explorerUrl paths from /blockchain/pvm/transactions to /blockchain/pvm/tx/ so transaction hash links resolve correctly on Flarescan. Ticket: CECHO-1177 Co-authored-by: Cursor --- modules/statics/src/networks.ts | 4 ++-- modules/statics/test/unit/networks.ts | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/statics/src/networks.ts b/modules/statics/src/networks.ts index fbed8a2a60..30bfa42737 100644 --- a/modules/statics/src/networks.ts +++ b/modules/statics/src/networks.ts @@ -2297,7 +2297,7 @@ export class FlareP extends Mainnet implements FlareNetwork { assetId = 'Flare'; name = 'FlareP'; family = CoinFamily.FLRP; - explorerUrl = 'https://flarescan.com/blockchain/pvm/transactions/'; + explorerUrl = 'https://flarescan.com/blockchain/pvm/tx/'; accountExplorerUrl = 'https://flarescan.com/blockchain/pvm/address/'; blockchainID = '11111111111111111111111111111111LpoYY'; cChainBlockchainID = '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5'; @@ -2331,7 +2331,7 @@ export class FlareP extends Mainnet implements FlareNetwork { export class FlarePTestnet extends Testnet implements FlareNetwork { name = 'FlarePTestnet'; family = CoinFamily.FLRP; - explorerUrl = 'https://coston2.testnet.flarescan.com/blockchain/pvm/transactions'; + explorerUrl = 'https://coston2.testnet.flarescan.com/blockchain/pvm/tx/'; accountExplorerUrl = 'https://coston2.testnet.flarescan.com/blockchain/pvm/address/'; flarePublicUrl = 'https://coston2.testnet.flare.network'; blockchainID = '11111111111111111111111111111111LpoYY'; diff --git a/modules/statics/test/unit/networks.ts b/modules/statics/test/unit/networks.ts index 2b92f1d3fb..c859bd45d5 100644 --- a/modules/statics/test/unit/networks.ts +++ b/modules/statics/test/unit/networks.ts @@ -70,6 +70,17 @@ Object.entries(Networks).forEach(([category, networks]) => { Networks.test.near.accountExplorerUrl.should.equal('https://testnet.nearblocks.io/address/'); }); }); + + describe('FlareP Network', function () { + it('should have correct explorer URLs', function () { + Networks.main.flrP.explorerUrl.should.equal('https://flarescan.com/blockchain/pvm/tx/'); + Networks.main.flrP.accountExplorerUrl.should.equal('https://flarescan.com/blockchain/pvm/address/'); + Networks.test.flrP.explorerUrl.should.equal('https://coston2.testnet.flarescan.com/blockchain/pvm/tx/'); + Networks.test.flrP.accountExplorerUrl.should.equal( + 'https://coston2.testnet.flarescan.com/blockchain/pvm/address/' + ); + }); + }); }); });