Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "export-evm-state", Short: "Export EVM state at a specific height", RunE: func(*cobra.Command, []string) error { if height == 0 || outputDir == "" || registerStoreDir == "" { return fmt.Errorf("all flags (height, output, register-store) must be provided") } log.Info().Msgf("exporting EVM state for height %v from registerStoreDir %v, outputDir: %v, chain: %v", height, registerStoreDir, outputDir, chain) chainID := flowGo.ChainID(chain) err := ExportEVMStateForHeight(height, outputDir, registerStoreDir, chainID) if err != nil { return fmt.Errorf("fail to export: %w", err) } log.Info().Msgf("successfully exported EVM state to %v", outputDir) return nil }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.