From d3beb353c8f9ae36c3deba7e2c93f49f48b5de5c Mon Sep 17 00:00:00 2001 From: HuangYi Date: Fri, 29 Nov 2024 16:38:56 +0800 Subject: [PATCH] fix build --- store/iavl/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/store/iavl/store.go b/store/iavl/store.go index 25c672dc7ce9..bb9535d56947 100644 --- a/store/iavl/store.go +++ b/store/iavl/store.go @@ -16,6 +16,7 @@ import ( "cosmossdk.io/store/metrics" pruningtypes "cosmossdk.io/store/pruning/types" "cosmossdk.io/store/types" + "cosmossdk.io/store/wrapper" ) const ( @@ -58,7 +59,7 @@ func LoadStoreWithOpts(db dbm.DB, logger log.Logger, key types.StoreKey, id type initialVersion = 1 } opts = append(opts, iavl.InitialVersionOption(initialVersion)) - tree := iavl.NewMutableTree(db, cacheSize, disableFastNode, logger, opts...) + tree := iavl.NewMutableTree(wrapper.NewDBWrapper(db), cacheSize, disableFastNode, logger, opts...) isUpgradeable, err := tree.IsUpgradeable() if err != nil {