Skip to content

Commit

Permalink
change stringer
Browse files Browse the repository at this point in the history
  • Loading branch information
toteki committed Jul 30, 2023
1 parent 39a9994 commit 5e2e948
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions x/leverage/types/msgs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package types

import (
"fmt"

"cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
Expand Down Expand Up @@ -98,8 +100,13 @@ func (msg MsgGovUpdateSpecialAssets) GetSigners() []sdk.AccAddress {

// String implements the Stringer interface.
func (msg MsgGovUpdateSpecialAssets) String() string {
out, _ := yaml.Marshal(msg)
return string(out)
// return fmt.Sprintf("<authority: %s, min_gas_price: %s>", msg.Authority, msg.MinGasPrice.String())
return fmt.Sprintf(
"authority: %s, sets: %s, pairs: %s",
msg.Authority,
msg.Sets,
msg.Pairs,
)
}

// ValidateBasic implements Msg
Expand Down

0 comments on commit 5e2e948

Please sign in to comment.