Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-nr committed Oct 22, 2024
1 parent 982e27a commit 28a7f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func (bc *BlockChain) StateAt(root common.Hash) (*state.StateDB, error) {
// Instead of that, it will be more useful to return an error to indicate
// the state is not available.
if stateDb.NoTrie() && stateDb.GetSnap() == nil {
return nil, errors.New("state is not available")
return stateDb, errors.New("state is not available")
}

return stateDb, err
Expand Down

0 comments on commit 28a7f0b

Please sign in to comment.