Skip to content

Commit

Permalink
Fix typo in constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Oct 17, 2024
1 parent de3f7b0 commit 9408e94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/run/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,19 @@ func parseConfigFromFlags() error {
case "flow-previewnet":
cfg.FlowNetworkID = flowGo.Previewnet
cfg.EVMNetworkID = types.FlowEVMPreviewNetChainID
cfg.InitCadenceHeight = config.LiveNetworkInitCadenceHeght
cfg.InitCadenceHeight = config.LiveNetworkInitCadenceHeight
case "flow-emulator":
cfg.FlowNetworkID = flowGo.Emulator
cfg.EVMNetworkID = types.FlowEVMPreviewNetChainID
cfg.InitCadenceHeight = config.EmulatorInitCadenceHeight
case "flow-testnet":
cfg.FlowNetworkID = flowGo.Testnet
cfg.EVMNetworkID = types.FlowEVMTestNetChainID
cfg.InitCadenceHeight = config.LiveNetworkInitCadenceHeght
cfg.InitCadenceHeight = config.LiveNetworkInitCadenceHeight
case "flow-mainnet":
cfg.FlowNetworkID = flowGo.Mainnet
cfg.EVMNetworkID = types.FlowEVMMainNetChainID
cfg.InitCadenceHeight = config.LiveNetworkInitCadenceHeght
cfg.InitCadenceHeight = config.LiveNetworkInitCadenceHeight
default:
return fmt.Errorf(
"flow network ID: %s not supported, valid values are ('flow-emulator', 'flow-previewnet', 'flow-testnet', 'flow-mainnet')",
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const EmulatorInitCadenceHeight = uint64(0)

// Default InitCadenceHeight for initializing the database on a live network.
// We don't use 0 as it has a special meaning to represent latest block in the AN API context.
const LiveNetworkInitCadenceHeght = uint64(1)
const LiveNetworkInitCadenceHeight = uint64(1)

type Config struct {
// DatabaseDir is where the database should be stored.
Expand Down

0 comments on commit 9408e94

Please sign in to comment.