Skip to content

Commit

Permalink
added back type implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
sampocs committed Aug 8, 2023
1 parent f1c024b commit 90c8677
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/icaoracle/types/message_add_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ func NewMsgAddOracle(creator string, connectionId string) *MsgAddOracle {
}
}

func (msg *MsgAddOracle) Type() string { return TypeMsgAddOracle }

func (msg *MsgAddOracle) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions x/icaoracle/types/message_instantiate_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func NewMsgInstantiateOracle(creator string, chainId string, contractCodeId uint
}
}

func (msg *MsgInstantiateOracle) Type() string { return TypeMsgInstantiateOracle }

func (msg *MsgInstantiateOracle) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions x/icaoracle/types/message_remove_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const TypeMsgRemoveOracle = "remove_oracle"

var _ sdk.Msg = &MsgRemoveOracle{}

func (msg *MsgRemoveOracle) Type() string { return TypeMsgRemoveOracle }

func (msg *MsgRemoveOracle) GetSignBytes() []byte {
bz := ModuleCdc.MustMarshalJSON(msg)
return sdk.MustSortJSON(bz)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ func NewMsgRestoreOracleICA(creator string, oracleChainId string) *MsgRestoreOra
}
}

func (msg *MsgRestoreOracleICA) Type() string { return TypeMsgRestoreOracleICA }

func (msg *MsgRestoreOracleICA) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions x/icaoracle/types/message_toggle_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const TypeMsgToggleOracle = "toggle_oracle"

var _ sdk.Msg = &MsgToggleOracle{}

func (msg *MsgToggleOracle) Type() string { return TypeMsgToggleOracle }

func (msg *MsgToggleOracle) GetSignBytes() []byte {
bz := ModuleCdc.MustMarshalJSON(msg)
return sdk.MustSortJSON(bz)
Expand Down

0 comments on commit 90c8677

Please sign in to comment.