Skip to content

Commit

Permalink
chore: solve lll
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Oct 22, 2024
1 parent 5cb0b5b commit 56dd55a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/retrieve_state/retrieve_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ func (s *StateRequestProvider) processResponse(stateResponse *messages.StateResp
return nil
}

func (s *StateRequestProvider) buildTrie(expectedStorageRootHash common.Hash, destination string, v trie.TrieLayout) error {
func (s *StateRequestProvider) buildTrie(expectedStorageRootHash common.Hash,
destination string, v trie.TrieLayout) error {
tt := inmemory.NewEmptyTrie()
tt.SetVersion(v)

Expand Down Expand Up @@ -133,7 +134,8 @@ func (s *StateRequestProvider) buildTrie(expectedStorageRootHash common.Hash, de

func main() {
if len(os.Args) != 6 {
log.Fatalf("script usage: \n\tgo run retrieve_state.go [block hash] [expected state root hash] [network chain spec] [v0|v1] [output file]\n")
log.Fatalf(`script usage:
go run retrieve_state.go [block hash] [expected state root hash] [network chain spec] [v0|v1] [output file]`)
}

version, ok := supportedVersions[os.Args[4]]
Expand Down

0 comments on commit 56dd55a

Please sign in to comment.