Skip to content

Commit

Permalink
chore: re-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchon committed Jan 12, 2023
1 parent 71e9806 commit 4220fb5
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 62 deletions.
7 changes: 6 additions & 1 deletion chain/wasmx/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ func (msg MsgExecuteContractCompat) Type() string {
}

func (msg MsgExecuteContractCompat) ValidateBasic() error {
funds, err := sdk.ParseCoinsNormalized(msg.Funds)
if err != nil {
return err
}

oMsg := &wasmtypes.MsgExecuteContract{
Sender: msg.Sender,
Contract: msg.Contract,
Msg: []byte(msg.Msg),
Funds: msg.Funds,
Funds: funds,
}

if err := oMsg.ValidateBasic(); err != nil {
Expand Down
94 changes: 38 additions & 56 deletions chain/wasmx/types/tx.pb.go

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

6 changes: 1 addition & 5 deletions proto/injective/wasmx/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
syntax = "proto3";
package injective.wasmx.v1;

import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types";
Expand All @@ -20,10 +19,7 @@ message MsgExecuteContractCompat {
// Msg json encoded message to be passed to the contract
string msg = 3;
// Funds coins that are transferred to the contract on execution
repeated cosmos.base.v1beta1.Coin funds = 5 [
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
string funds = 4;
}


Expand Down

0 comments on commit 4220fb5

Please sign in to comment.