Skip to content

Commit 2e9e5d6

Browse files
authored
chore: prepare v0.47.5 (#17407)
1 parent 273bb7d commit 2e9e5d6

File tree

4 files changed

+11
-29
lines changed

4 files changed

+11
-29
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Ref: https://keepachangelog.com/en/1.0.0/
3737

3838
## [Unreleased]
3939

40+
## [v0.47.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.5) - 2023-09-01
41+
4042
### Features
4143

4244
* (client/rpc) [#17274](https://github.com/cosmos/cosmos-sdk/pull/17274) Add `QueryEventForTxCmd` cmd to subscribe and wait event for transaction by hash.
@@ -52,7 +54,6 @@ Ref: https://keepachangelog.com/en/1.0.0/
5254

5355
### Bug Fixes
5456

55-
* (x/authz) [#17524](https://github.com/cosmos/cosmos-sdk/pull/17524) Fix an issue where the `cachedValue` of an authorization would not be correcty populated when there are multiple authorizations returned in `GetAuthorizations`.
5657
* (server) [#17181](https://github.com/cosmos/cosmos-sdk/pull/17181) Fix `db_backend` lookup fallback from `config.toml`.
5758
* (runtime) [#17284](https://github.com/cosmos/cosmos-sdk/pull/17284) Properly allow to combine depinject-enabled modules and non-depinject-enabled modules in app v2.
5859
* (baseapp) [#17159](https://github.com/cosmos/cosmos-sdk/pull/17159) Validators can propose blocks that exceed the gas limit.

RELEASE_NOTES.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
# Cosmos SDK v0.47.4 Release Notes
1+
# Cosmos SDK v0.47.5 Release Notes
22

33
💬 [**Release Discussion**](https://github.com/orgs/cosmos/discussions/categories/announcements)
44

55
## 🚀 Highlights
66

7-
Missed the v0.47.0 announcement? Read it [here](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.0).
8-
For this fourth patch release of the `v0.47.x` line, some of the notable changes include:
7+
Get ready for v0.50.0 and start integrating with the next [Cosmos SDK](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.0-rc.0) release.
98

10-
* An improvement in `<appd> prune` UX.
11-
* Improving the error handling when there is a snapshot creation failure.
9+
For this 5th patch release of the `v0.47.x` line, some of the notable changes include:
1210

13-
Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.4/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.47.3...v0.47.4) from last release.
11+
* A new command for importing private keys encoded in hex. This complements the existing `import` command that supports mnemonic and key files.
12+
Use `<appd> keys import <name> <hex>` to import a private key encoded in hex.
13+
* A new command, `rpc.QueryEventForTxCmd` for querying a transaction by its hash and blocking until the transaction is included in a block. It is useful as an alternative to the legacy `--sync block`.
14+
15+
Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.5/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.47.4...v0.47.5) from last release.
1416

1517
Refer to the [upgrading guide](https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/UPGRADING.md) when migrating from `v0.46.x` to `v0.47.0`.

x/authz/keeper/keeper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ func (k Keeper) GetAuthorizations(ctx sdk.Context, grantee sdk.AccAddress, grant
234234
iter := sdk.KVStorePrefixIterator(store, key)
235235
defer iter.Close()
236236

237+
var authorization authz.Grant
237238
var authorizations []authz.Authorization
238239
for ; iter.Valid(); iter.Next() {
239-
var authorization authz.Grant
240240
if err := k.cdc.Unmarshal(iter.Value(), &authorization); err != nil {
241241
return nil, err
242242
}

x/authz/keeper/keeper_test.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -470,27 +470,6 @@ func (s *TestSuite) TestGetAuthorization() {
470470
}
471471
}
472472

473-
func (s *TestSuite) TestGetAuthorizations() {
474-
require := s.Require()
475-
addr1 := s.addrs[1]
476-
addr2 := s.addrs[2]
477-
478-
genAuthMulti := authz.NewGenericAuthorization(sdk.MsgTypeURL(&banktypes.MsgMultiSend{}))
479-
genAuthSend := authz.NewGenericAuthorization(sdk.MsgTypeURL(&banktypes.MsgSend{}))
480-
481-
start := s.ctx.BlockHeader().Time
482-
expired := start.Add(time.Duration(1) * time.Second)
483-
484-
s.Require().NoError(s.authzKeeper.SaveGrant(s.ctx, addr1, addr2, genAuthMulti, &expired), "creating multi send grant 1->2")
485-
s.Require().NoError(s.authzKeeper.SaveGrant(s.ctx, addr1, addr2, genAuthSend, &expired), "creating send grant 1->2")
486-
487-
authzs, err := s.authzKeeper.GetAuthorizations(s.ctx, addr1, addr2)
488-
require.NoError(err)
489-
require.Len(authzs, 2)
490-
require.Equal(sdk.MsgTypeURL(&banktypes.MsgMultiSend{}), authzs[0].MsgTypeURL())
491-
require.Equal(sdk.MsgTypeURL(&banktypes.MsgSend{}), authzs[1].MsgTypeURL())
492-
}
493-
494473
func TestTestSuite(t *testing.T) {
495474
suite.Run(t, new(TestSuite))
496475
}

0 commit comments

Comments
 (0)