From 77c10635a901963768f6f2e55f011994235cfd2f Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Thu, 18 Jul 2024 12:22:50 +0200 Subject: [PATCH] feat(wasm): use wasm provided build in capabilities --- app/app.go | 2 +- app/wasm/capabilities.go | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 app/wasm/capabilities.go diff --git a/app/app.go b/app/app.go index dae98ab6..da877fb6 100644 --- a/app/app.go +++ b/app/app.go @@ -606,7 +606,7 @@ func New( app.GRPCQueryRouter(), wasmDir, wasmConfig, - axonewasm.AllCapabilities(), + wasmkeeper.BuiltInCapabilities(), authtypes.NewModuleAddress(govtypes.ModuleName).String(), wasmOpts..., ) diff --git a/app/wasm/capabilities.go b/app/wasm/capabilities.go deleted file mode 100644 index 126c5af9..00000000 --- a/app/wasm/capabilities.go +++ /dev/null @@ -1,17 +0,0 @@ -package wasm - -// AllCapabilities returns all capabilities available with the current wasmvm -// See https://github.com/CosmWasm/cosmwasm/blob/main/docs/CAPABILITIES-BUILT-IN.md -// This functionality is going to be moved upstream: https://github.com/CosmWasm/wasmvm/issues/425 -func AllCapabilities() []string { - return []string{ - "iterator", - "staking", - "stargate", - "cosmwasm_1_1", - "cosmwasm_1_2", - "cosmwasm_1_3", - "cosmwasm_1_4", - "cosmwasm_2_0", - } -}