Skip to content

Commit

Permalink
Problem: recent bug fixes are not included (#1715)
Browse files Browse the repository at this point in the history
* Problem: rocksdb 9.8.4 is not used (#1712)

for more info, facebook/rocksdb@v9.7.4...v9.8.4

* Problem: query blocks before enable feemarket module get nil pointer error (#1714)

* Problem: unable to query historical txs whose module is removed (#1713)

* Problem: unable to query historical txs from deleted icaauth module

* test

* poetry

* deps

* add unit tets

* cleanup

* rename

* revert integration test

* revert

* add authz

* changelog

* test authz

* cleanup

* register in query

* only patch encoding for tx service

* Revert "only patch encoding for tx service"

This reverts commit 4b1c141.

---------

Co-authored-by: HuangYi <[email protected]>

---------

Co-authored-by: HuangYi <[email protected]>
  • Loading branch information
mmsqe and yihuang authored Dec 9, 2024
1 parent 89ecd5b commit 892db65
Show file tree
Hide file tree
Showing 10 changed files with 1,308 additions and 16 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## UNRELEASED

### Bug Fixes

* [#1714](https://github.com/crypto-org-chain/cronos/pull/1714) Avoid nil pointer error when query blocks before feemarket module gets enabled.
* [#1713](https://github.com/crypto-org-chain/cronos/pull/1713) Register legacy codec to allow query historical txs whose modules are removed (icaauth, authz).

### Improvements

* [#1712](https://github.com/crypto-org-chain/cronos/pull/1712) Upgrade rocksdb to `v9.8.4`.

*Dec 2, 2024*

## v1.4.0
Expand Down
18 changes: 18 additions & 0 deletions app/legacy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package app

import (
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/x/authz"
icaauthtypes "github.com/crypto-org-chain/cronos/v2/app/legacy/icaauth/types"
)

func RegisterLegacyCodec(cdc *codec.LegacyAmino) {
icaauthtypes.RegisterCodec(cdc)
authz.RegisterLegacyAminoCodec(cdc)
}

func RegisterLegacyInterfaces(registry cdctypes.InterfaceRegistry) {
icaauthtypes.RegisterInterfaces(registry)
authz.RegisterInterfaces(registry)
}
23 changes: 23 additions & 0 deletions app/legacy/icaauth/types/codec.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package types

import (
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
)

func RegisterCodec(cdc *codec.LegacyAmino) {
cdc.RegisterConcrete(&MsgRegisterAccount{}, "icaauth/RegisterAccount", nil)
cdc.RegisterConcrete(&MsgSubmitTx{}, "icaauth/SubmitTx", nil)
}

func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgRegisterAccount{},
)
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgSubmitTx{},
)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
Loading

0 comments on commit 892db65

Please sign in to comment.