Skip to content

Commit

Permalink
fix consts
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Nov 23, 2021
1 parent 53fb15d commit f5277ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ func main() {
switch cfg.ChainID {
case mapper.MainnetChainID:
assetID = mapper.MainnetAssetID
AP5Activation = mapper.MainnetAP5Activation
AP5Activation = mapper.MainnetAP5Activation.Uint64()
case mapper.FujiChainID:
assetID = mapper.FujiAssetID
AP5Activation = mapper.FujiAP5Activation
AP5Activation = mapper.FujiAP5Activation.Uint64()
default:
log.Fatal("invalid ChainID:", cfg.ChainID)
}
Expand Down
13 changes: 7 additions & 6 deletions mapper/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ import (
)

const (
MainnetChainID = 43114
MainnetAssetID = "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z"
MainnetAP5Activation = params.AvalancheMainnetChainConfig.ApricotPhase5BlockTimestamp
MainnetChainID = 43114
MainnetAssetID = "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z"

FujiChainID = 43113
FujiAssetID = "U8iRqJoiJm8xZHAacmvYyZVwqQx6uDNtQeP3CQ6fcgQk3JqnK"
FujiAP5Activation = params.AvalancheFujiChainConfig.ApricotPhase5BlockTimestamp
FujiChainID = 43113
FujiAssetID = "U8iRqJoiJm8xZHAacmvYyZVwqQx6uDNtQeP3CQ6fcgQk3JqnK"

OpCall = "CALL"
OpFee = "FEE"
Expand All @@ -32,6 +30,9 @@ const (
)

var (
MainnetAP5Activation = params.AvalancheMainnetChainConfig.ApricotPhase5BlockTimestamp
FujiAP5Activation = params.AvalancheFujiChainConfig.ApricotPhase5BlockTimestamp

StageBootstrap = &types.SyncStatus{
Synced: types.Bool(false),
Stage: types.String("BOOTSTRAP"),
Expand Down

0 comments on commit f5277ca

Please sign in to comment.