diff --git a/store/v2/commitment/iavlv2/tree.go b/store/v2/commitment/iavlv2/tree.go index 14b7967a6c78..7d36fe949fca 100644 --- a/store/v2/commitment/iavlv2/tree.go +++ b/store/v2/commitment/iavlv2/tree.go @@ -65,7 +65,7 @@ func (t *Tree) LoadVersion(version uint64) error { } func (t *Tree) LoadVersionForOverwriting(version uint64) error { - return t.LoadVersion(version) // TODO: implement overwriting + return fmt.Errorf("not yet supported") } func (t *Tree) Commit() ([]byte, uint64, error) { diff --git a/store/v2/root/store_test.go b/store/v2/root/store_test.go index 17f9a1dd7b58..8bb6b5604e2d 100644 --- a/store/v2/root/store_test.go +++ b/store/v2/root/store_test.go @@ -264,7 +264,7 @@ func (s *RootStoreTestSuite) TestLoadVersion() { cs.Add(testStoreKeyBytes, []byte("key"), []byte(val), false) _, err := s.rootStore.Commit(cs) - s.Require().ErrorContains(err, "was already saved") + s.Require().Error(err) } // ensure the latest version is correct