Skip to content

Commit

Permalink
update to schema 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Aug 30, 2024
1 parent 2c9d4cf commit b1610ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collections/indexing.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"
"strings"

"cosmossdk.io/schema"
"github.com/tidwall/btree"

"cosmossdk.io/collections/codec"
"cosmossdk.io/schema"
)

// IndexingOptions are indexing options for the collections schema.
Expand Down Expand Up @@ -52,7 +52,7 @@ func (s Schema) ModuleCodec(opts IndexingOptions) (schema.ModuleCodec, error) {
decoder.collectionLookup.Set(string(coll.GetPrefix()), cdc)
}

modSchema, err := schema.NewModuleSchema(types...)
modSchema, err := schema.CompileModuleSchema(types...)
if err != nil {
return schema.ModuleCodec{}, err
}
Expand Down

0 comments on commit b1610ac

Please sign in to comment.