feat: migrate x/capability to app wiring (#12058)

* feat: migrate x/capability to app wiring

* added some fixes from Matt's PR + changed MemStoreKey

* fix name

* fix name

* small change

* rollback MemStoreKey change

* Revert "rollback MemStoreKey change"

This reverts commit ad191eaa4030cee77574f94f843993597b25a46c.

* add suggestions by @aaronc

* add IsSealed()

* fix

Co-authored-by: Aaron Craelius <aaron@regen.network>
This commit is contained in:
Facundo Medica
2022-06-02 18:53:17 +02:00
committed by GitHub
co-authored by Aaron Craelius
parent ffa5c880bb
commit 17232fa89b
9 changed files with 708 additions and 85 deletions
+3
View File
@@ -216,6 +216,9 @@ func (app *BaseApp) MountStores(keys ...storetypes.StoreKey) {
case *storetypes.TransientStoreKey:
app.MountStore(key, storetypes.StoreTypeTransient)
case *storetypes.MemoryStoreKey:
app.MountStore(key, storetypes.StoreTypeMemory)
default:
panic(fmt.Sprintf("Unrecognized store key type :%T", key))
}