Skip to content

Commit

Permalink
Remove json type cast for contract msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe committed May 21, 2021
1 parent 4631658 commit a8228e6
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 59 deletions.
6 changes: 3 additions & 3 deletions proto/cosmwasm/wasm/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ message MsgInstantiateContract {
// Label is optional metadata to be stored with a contract instance.
string label = 4;
// InitMsg json encoded message to be passed to the contract on instantiation
bytes init_msg = 5 [ (gogoproto.casttype) = "encoding/json.RawMessage" ];
bytes init_msg = 5;
// Funds coins that are transferred to the contract on instantiation
repeated cosmos.base.v1beta1.Coin funds = 6 [
(gogoproto.nullable) = false,
Expand All @@ -80,7 +80,7 @@ message MsgExecuteContract {
// Contract is the address of the smart contract
string contract = 2;
// Msg json encoded message to be passed to the contract
bytes msg = 3 [ (gogoproto.casttype) = "encoding/json.RawMessage" ];
bytes msg = 3;
// Funds coins that are transferred to the contract on execution
repeated cosmos.base.v1beta1.Coin funds = 5 [
(gogoproto.nullable) = false,
Expand All @@ -103,7 +103,7 @@ message MsgMigrateContract {
// CodeID references the new WASM code
uint64 code_id = 3 [ (gogoproto.customname) = "CodeID" ];
// MigrateMsg json encoded message to be passed to the contract on migration
bytes migrate_msg = 4 [ (gogoproto.casttype) = "encoding/json.RawMessage" ];
bytes migrate_msg = 4;
}

// MsgMigrateContractResponse returns contract migration result data.
Expand Down
109 changes: 53 additions & 56 deletions x/wasm/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8228e6

Please sign in to comment.