diff --git a/store/v2/commitment/iavlv2/tree.go b/store/v2/commitment/iavlv2/tree.go index a88567e23759..2269a5a6eb14 100644 --- a/store/v2/commitment/iavlv2/tree.go +++ b/store/v2/commitment/iavlv2/tree.go @@ -1,6 +1,7 @@ package iavlv2 import ( + "errors" "fmt" "github.com/cosmos/iavl/v2" @@ -69,8 +70,7 @@ func (t Tree) SetInitialVersion(version uint64) error { } func (t Tree) GetProof(version uint64, key []byte) (*ics23.CommitmentProof, error) { - //TODO implement me - panic("implement me") + return t.tree.GetProof(int64(version), key) } func (t Tree) Get(version uint64, key []byte) ([]byte, error) { @@ -81,13 +81,11 @@ func (t Tree) Get(version uint64, key []byte) ([]byte, error) { } func (t Tree) Export(version uint64) (commitment.Exporter, error) { - //TODO implement me - panic("implement me") + return nil, errors.New("snapshot import/export not yet supported") } func (t Tree) Import(version uint64) (commitment.Importer, error) { - //TODO implement me - panic("implement me") + return nil, errors.New("snapshot import/export not yet supported") } func (t Tree) Close() error { diff --git a/store/v2/go.mod b/store/v2/go.mod index a3f0e8e6554a..b1184dad3d6d 100644 --- a/store/v2/go.mod +++ b/store/v2/go.mod @@ -69,7 +69,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace ( - cosmossdk.io/core => ../../core - github.com/cosmos/iavl/v2 => ../../../../iavl/iavl-v2 -) +replace cosmossdk.io/core => ../../core diff --git a/store/v2/go.sum b/store/v2/go.sum index d0062be85bcc..3c443dfe7cbf 100644 --- a/store/v2/go.sum +++ b/store/v2/go.sum @@ -50,6 +50,8 @@ github.com/cosmos/iavl v1.3.0 h1:Ezaxt8aPA3kbkhsfyqwenChGLQwHDAIif3tG9x1FMV8= github.com/cosmos/iavl v1.3.0/go.mod h1:T6SfBcyhulVIY2G/ZtAtQm/QiJvsuhIos52V4dWYk88= github.com/cosmos/iavl-bench/bench v0.0.4 h1:J6zQPiBqF4CXMM3QBsLqZgQEBGY0taX85vLIZMhmAfQ= github.com/cosmos/iavl-bench/bench v0.0.4/go.mod h1:j2rLae77EffacWcp7mmj3Uaa4AOAmZA7ymvhsuBQKKI= +github.com/cosmos/iavl/v2 v2.0.0-20241029195051-d3ac274b6b58 h1:uQF/fzXtekKFxYN3eRVWiAmn4DdiYwqhq8CIuFTuOAE= +github.com/cosmos/iavl/v2 v2.0.0-20241029195051-d3ac274b6b58/go.mod h1:ZjSMMhZ6JqgzCRJO1oKJ5EtRksDFMZ5Djv+Rv0SX/uc= github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU= github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=