Skip to content

Commit

Permalink
fix lint add export evm state to cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Dec 5, 2024
1 parent 96c4472 commit 5495113
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 72 deletions.
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"os"

"github.com/onflow/flow-evm-gateway/cmd/export-evm-state"
"github.com/onflow/flow-evm-gateway/cmd/run"
"github.com/onflow/flow-evm-gateway/cmd/version"
"github.com/rs/zerolog/log"
Expand All @@ -23,6 +24,7 @@ func Execute() {

func main() {
rootCmd.AddCommand(version.Cmd)
rootCmd.AddCommand(export.Cmd)

Check failure on line 27 in cmd/main.go

View workflow job for this annotation

GitHub Actions / Lint

undefined: export (typecheck)
rootCmd.AddCommand(run.Cmd)

Execute()
Expand Down
71 changes: 0 additions & 71 deletions cmd/util/main.go

This file was deleted.

3 changes: 2 additions & 1 deletion services/evm/extract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ func extractEVMState(
t *testing.T, chainID flowGo.ChainID,
registerStoreDir string, evmHeight uint64) *state.EVMState {

store, err := pebble.New(registerStoreDir, log.Logger)
pebbleDB, err := pebble.OpenDB(registerStoreDir)
require.NoError(t, err)
store := pebble.New(pebbleDB, log.Logger)

evmState, err := evmState.ExtractEVMState(chainID, evmHeight, store)
require.NoError(t, err)
Expand Down

0 comments on commit 5495113

Please sign in to comment.