Skip to content

Commit 60a33de

Browse files
committed
fix a failing test
1 parent bbb2c57 commit 60a33de

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

server/mapper/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ var (
118118
FlareHRP: FlareChainID,
119119
CostwoHRP: CostwoChainID,
120120
LocalFlareHRP: LocalFlareChainID,
121+
"flare": FlareChainID, // Alias for network name
122+
"costwo": CostwoChainID, // Alias for network name
121123
"fuji": CostwoChainID, // Alias for backwards compatibility with tests
122124
}
123125
)

server/service/backend/pchain/block_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"github.com/ava-labs/avalanche-rosetta/service"
2222
"github.com/ava-labs/avalanche-rosetta/service/backend/pchain/indexer"
2323

24-
avaconstants "github.com/ava-labs/avalanchego/utils/constants"
2524
avatypes "github.com/ava-labs/avalanchego/vms/types"
2625
)
2726

@@ -34,7 +33,8 @@ func TestFetchBlkDependencies(t *testing.T) {
3433

3534
ctx := context.Background()
3635

37-
networkID := avaconstants.MainnetID
36+
// networkID := avaconstants.MainnetID
37+
networkID := uint32(14) // Flare mainnet network ID
3838
networkIdentifier := &types.NetworkIdentifier{
3939
Blockchain: service.BlockchainName,
4040
Network: constants.MainnetNetwork,

0 commit comments

Comments
 (0)