Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Nov 30, 2024
1 parent 1e2f13f commit 91128cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion store/v2/commitment/iavlv2/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion store/v2/root/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91128cd

Please sign in to comment.