Skip to content

Commit

Permalink
chore: inline var
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <norman@samourai.coop>
  • Loading branch information
n0izn0iz committed Aug 7, 2024
1 parent 0632c43 commit 4e17d19
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fetch/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,9 @@ func getGenesisBlock(client Client) (*bft_types.Block, error) {
return nil, fmt.Errorf("nil genesis doc")
}

appState := gblock.Genesis.AppState

genesisState, ok := appState.(gnoland.GnoGenesisState)
genesisState, ok := gblock.Genesis.AppState.(gnoland.GnoGenesisState)
if !ok {
return nil, fmt.Errorf("unknown genesis state kind '%T'", appState)
return nil, fmt.Errorf("unknown genesis state kind '%T'", gblock.Genesis.AppState)
}

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

0 comments on commit 4e17d19

Please sign in to comment.