feat(x/tx): add aminoNameAsTypeURL option in aminojson encoder (#21712)
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
This commit is contained in:
co-authored by
Matt Kocubinski
parent
870cab5efd
commit
0c8ad9d2c6
@@ -43,6 +43,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
* [#18626](https://github.com/cosmos/cosmos-sdk/pull/18626) Support for off-chain signing and verification of a file.
|
||||
* [#18461](https://github.com/cosmos/cosmos-sdk/pull/18461) Support governance proposals.
|
||||
|
||||
### Improvements
|
||||
|
||||
* [#21712](https://github.com/cosmos/cosmos-sdk/pull/21712) Marshal `type` field as proto message url in queries instead of amino name.
|
||||
|
||||
### API Breaking Changes
|
||||
|
||||
* [#17709](https://github.com/cosmos/cosmos-sdk/pull/17709) Address codecs have been removed from `autocli.AppOptions` and `flag.Builder`. Instead client/v2 uses the address codecs present in the context (introduced in [#17503](https://github.com/cosmos/cosmos-sdk/pull/17503)).
|
||||
|
||||
@@ -119,11 +119,12 @@ func (b *Builder) BuildQueryMethodCommand(ctx context.Context, descriptor protor
|
||||
methodName := fmt.Sprintf("/%s/%s", serviceDescriptor.FullName(), descriptor.Name())
|
||||
outputType := util.ResolveMessageType(b.TypeResolver, descriptor.Output())
|
||||
encoderOptions := aminojson.EncoderOptions{
|
||||
Indent: " ",
|
||||
EnumAsString: true,
|
||||
DoNotSortFields: true,
|
||||
TypeResolver: b.TypeResolver,
|
||||
FileResolver: b.FileResolver,
|
||||
Indent: " ",
|
||||
EnumAsString: true,
|
||||
DoNotSortFields: true,
|
||||
AminoNameAsTypeURL: true,
|
||||
TypeResolver: b.TypeResolver,
|
||||
FileResolver: b.FileResolver,
|
||||
}
|
||||
|
||||
cmd, err := b.buildMethodCommandCommon(descriptor, options, func(cmd *cobra.Command, input protoreflect.Message) error {
|
||||
|
||||
Reference in New Issue
Block a user