Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Oct 11, 2024
1 parent 59b785b commit a3168cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion server/v2/appmanager/appmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ func (a AppManager[T]) Simulate(ctx context.Context, tx T) (server.TxResult, cor
func (a AppManager[T]) Query(ctx context.Context, version uint64, request transaction.Msg) (transaction.Msg, error) {
// if version is provided attempt to do a height query.
if version != 0 {
// TODO: if proof is set to true we will be checking ss for the version and not sc
queryState, err := a.db.StateAt(version)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion store/v2/root/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (s *Store) StateLatest() (uint64, corestore.ReaderMap, error) {
return v, NewReaderMap(v, s), nil
}

// StateAt checks if the requested version is present in the state storage and the commitment store.
// StateAt checks if the requested version is present in the state storage.
func (s *Store) StateAt(v uint64) (corestore.ReaderMap, error) {
// check if version is present in state storage
if _, err := s.stateStorage.VersionExists(v); err != nil {
Expand Down

0 comments on commit a3168cc

Please sign in to comment.