chore: remove todo: "abstract out staking message back to staking" (backport #21266) (#21299)

Co-authored-by: james.zhang <68689915+zenzenless@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2024-08-14 10:21:13 +00:00
committed by GitHub
co-authored by james.zhang
parent d32e1eab16
commit a7a9bcb0f7
2 changed files with 15 additions and 5 deletions
+5
View File
@@ -90,6 +90,11 @@ func (msg MsgCreateValidator) Validate(ac address.Codec) error {
return nil
}
// GetMoniker returns the moniker of the validator
func (msg MsgCreateValidator) GetMoniker() string {
return msg.Description.GetMoniker()
}
// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (msg MsgCreateValidator) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
var pubKey cryptotypes.PubKey