mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
refactor: optimize oracle genesis proto
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
@@ -45,16 +43,16 @@ func MsgUpdateParams() *cobra.Command {
|
||||
}
|
||||
|
||||
senderAddress := cliCtx.GetFromAddress()
|
||||
|
||||
someValue, err := strconv.ParseBool(args[0])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
//
|
||||
// someValue, err := strconv.ParseBool(args[0])
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
|
||||
msg := &types.MsgUpdateParams{
|
||||
Authority: senderAddress.String(),
|
||||
Params: types.Params{
|
||||
SomeValue: someValue,
|
||||
Params: types.Params{
|
||||
// SomeValue: someValue,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user