Merge pull request #219 from CosmWasm/better-msg-json

Store Message ignores missing permission field from JSON Encoding
This commit is contained in:
Ethan Frey 2020-07-24 12:09:06 +02:00 committed by GitHub
commit d0645f3608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {