Skip to content

Commit

Permalink
chore: print unknown type
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Jul 24, 2024
1 parent b9b7e16 commit 24e0169
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fetch/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,10 @@ func getGenesisBlock(client Client) (*bft_types.Block, error) {
return nil, fmt.Errorf("unable to get genesis block, %w", err)
}

genesisState, ok := gblock.Genesis.AppState.(gnoland.GnoGenesisState)
appState := gblock.Genesis.AppState
genesisState, ok := appState.(gnoland.GnoGenesisState)
if !ok {

Check failure on line 305 in fetch/fetch.go

View workflow job for this annotation

GitHub Actions / Go Linter / lint

only one cuddle assignment allowed before if statement (wsl)
return nil, fmt.Errorf("unknown genesis state kind")
return nil, fmt.Errorf("unknown genesis state kind '%T'", appState)
}

txs := make([]bft_types.Tx, len(genesisState.Txs))
Expand Down

0 comments on commit 24e0169

Please sign in to comment.