From e43c032e663f09c917100954382abf930c487d60 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Fri, 24 Jul 2020 11:43:39 +0200 Subject: [PATCH] Store Message ignores missing permission from JSON --- x/wasm/internal/types/msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/wasm/internal/types/msg.go b/x/wasm/internal/types/msg.go index 8900516..43ee4be 100644 --- a/x/wasm/internal/types/msg.go +++ b/x/wasm/internal/types/msg.go @@ -16,7 +16,7 @@ type MsgStoreCode struct { // Builder is a valid docker image name with tag, optional Builder string `json:"builder" yaml:"builder"` // InstantiatePermission to apply on contract creation, optional - InstantiatePermission *AccessConfig `json:"instantiate_permission" yaml:"instantiate_permission"` + InstantiatePermission *AccessConfig `json:"instantiate_permission,omitempty" yaml:"instantiate_permission"` } func (msg MsgStoreCode) Route() string {