Rename clientCtx.JSONMarshaler to JSONCodec (#9251)

* Rename clientCtx.JSONMarshaler to JSONCodec

* change md files

* Fix lint
This commit is contained in:
Amaury
2021-05-03 14:45:47 +00:00
committed by GitHub
parent d3bcc15b11
commit d19791be89
66 changed files with 220 additions and 219 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ func Cmd() *cobra.Command {
// getPubKeyFromString decodes SDK PubKey using JSON marshaler.
func getPubKeyFromString(ctx client.Context, pkstr string) (cryptotypes.PubKey, error) {
var pk cryptotypes.PubKey
err := ctx.JSONMarshaler.UnmarshalInterfaceJSON([]byte(pkstr), &pk)
err := ctx.JSONCodec.UnmarshalInterfaceJSON([]byte(pkstr), &pk)
return pk, err
}