Skip to content

Commit c9d68e4

Browse files
fix(codec): provide legacy amino og type (backport #23504) (#23514)
Co-authored-by: Julien Robert <[email protected]>
1 parent 9b5ea09 commit c9d68e4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
4040

4141
Every module contains its own CHANGELOG.md. Please refer to the module you are interested in.
4242

43+
### Bug Fixes
44+
45+
* (codec) [#23504](https://github.com/cosmos/cosmos-sdk/pull/23504) Provide `*codec.LegacyAmino` alongside `registry.AminoRegistrar` by default in depinject provider.
46+
4347
## [v0.52.0-rc.2](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.52.0-rc.2) - 2025-01-23
4448

4549
Every module contains its own CHANGELOG.md. Please refer to the module you are interested in.

codec/depinject.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ func ProvideInterfaceRegistry(
5151
return interfaceRegistry, interfaceRegistry, nil
5252
}
5353

54-
func ProvideLegacyAmino() registry.AminoRegistrar {
55-
return NewLegacyAmino()
54+
func ProvideLegacyAmino() (registry.AminoRegistrar, *LegacyAmino) {
55+
amino := NewLegacyAmino()
56+
return amino, amino
5657
}
5758

5859
func ProvideProtoCodec(interfaceRegistry types.InterfaceRegistry) *ProtoCodec {

0 commit comments

Comments
 (0)