diff --git a/cmd/run/cmd.go b/cmd/run/cmd.go index 6ce7caca..21f2cd92 100644 --- a/cmd/run/cmd.go +++ b/cmd/run/cmd.go @@ -138,7 +138,7 @@ 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 @@ -146,11 +146,11 @@ func parseConfigFromFlags() error { 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')", diff --git a/config/config.go b/config/config.go index 002ffa19..65d52127 100644 --- a/config/config.go +++ b/config/config.go @@ -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.