Skip to content

Commit 8ff023e

Browse files
mergify[bot]johnleteyjulienrbrt
authored andcommitted
fix: correctly propagate msg errors in gov (backport cosmos#13918) (cosmos#13928)
* fix: correctly propagate msg errors in gov (cosmos#13918) * fix: correctly propagate msg errors in gov * chore: update changelog * fix: correctly check proposal status in tests * chore: delete unused var (cherry picked from commit 5581f7f) # Conflicts: # CHANGELOG.md # x/gov/abci_test.go * fix conflicts * updates Co-authored-by: John Letey <[email protected]> Co-authored-by: Julien Robert <[email protected]>
1 parent eed260f commit 8ff023e

File tree

3 files changed

+14
-40
lines changed

3 files changed

+14
-40
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,16 @@ Ref: https://keepachangelog.com/en/1.0.0/
3838

3939
## [Unreleased]
4040

41+
## [v0.46.6](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.6) - 2022-11-18
42+
4143
### Improvements
4244

4345
* (config) [#13894](https://github.com/cosmos/cosmos-sdk/pull/13894) Support state streaming configuration in `app.toml` template and default configuration.
4446

47+
## Bug Fixes
48+
49+
* (x/gov) [#13918](https://github.com/cosmos/cosmos-sdk/pull/13918) Fix propagation of message errors when executing a proposal.
50+
4551
## [v0.46.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.5) - 2022-11-17
4652

4753
### Features

RELEASE_NOTES.md

+4-16
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
1-
# Cosmos SDK v0.46.5 Release Notes
1+
# Cosmos SDK v0.46.6 Release Notes
22

3-
This release introduces a number of serious bug fixes and improvements. Notably, an upgrade to Tendermint [v0.34.23](https://github.com/tendermint/tendermint/releases/tag/v0.34.23).
3+
This release introduces small bug fixes and improvements.
44

5-
If you are planning to migrate to v0.46, please use `v0.46.5`. All releases prior to `v0.46.5` are [retracted](https://go.dev/ref/mod#go-mod-file-retract) and **must NOT be used** (`go get` directly upgrades the SDK version to `>= v0.46.5` thanks to the retraction, current builds are not affected).
6-
7-
If your chain's state has coin metadata, an issue has been discovered in the bank module coin metadata migration. This issue is fixed in `v0.46.5`.
8-
9-
* If your chain is already on v0.46 using `<= v0.46.4` and has coin metadata, a **coordinated upgrade** to `v0.46.5` is required.
10-
* Use the helper function `Migrate_V0464_To_V0465` for migrating a chain **already on v0.46 with versions <=v0.46.4** to the latest v0.46.5 correct state.
11-
* If your chain is already on v0.46 using `<= v0.46.4` but has no coin metadata, this release is **non-breaking**.
12-
13-
Moreover, serious issues have been found in the group module. These issues are fixed in `v0.46.5`.
14-
15-
* If you use the group module, upgrade to `v0.46.5` **immediately**. A **coordinated upgrade** to `v0.46.5` is required.
16-
17-
When a chain is already using `<= v0.46.4`, but has no coin metadata and no group module, this release is **non-breaking**.
5+
Please read the release notes of [v0.46.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.5) if you are upgrading from `<=0.46.4`.
186

197
Please see the [CHANGELOG](https://github.com/cosmos/cosmos-sdk/blob/release/v0.46.x/CHANGELOG.md) for an exhaustive list of changes.
208

21-
Full Commit History: https://github.com/cosmos/cosmos-sdk/compare/v0.46.4...v0.46.5
9+
Full Commit History: https://github.com/cosmos/cosmos-sdk/compare/v0.46.5...v0.46.6
2210

2311
**NOTE**: The changes mentioned in `v0.46.3` are **still** required:
2412

tests/integration/gov/common_test.go

+4-24
Original file line numberDiff line numberDiff line change
@@ -99,28 +99,8 @@ func SortByteArrays(src [][]byte) [][]byte {
9999
return sorted
100100
}
101101

102-
func createTestSuite(t *testing.T) suite {
103-
t.Helper()
104-
res := suite{}
105-
106-
app, err := simtestutil.SetupWithConfiguration(
107-
depinject.Configs(
108-
configurator.NewAppConfig(
109-
configurator.AccountsModule(),
110-
configurator.AuthModule(),
111-
configurator.StakingModule(),
112-
configurator.BankModule(),
113-
configurator.GovModule(),
114-
configurator.ConsensusModule(),
115-
configurator.ProtocolPoolModule(),
116-
),
117-
depinject.Supply(sdklog.NewNopLogger()),
118-
),
119-
simtestutil.DefaultStartUpConfig(),
120-
&res.AccountKeeper, &res.BankKeeper, &res.GovKeeper, &res.StakingKeeper,
121-
)
122-
require.NoError(t, err)
123-
124-
res.app = app
125-
return res
102+
var pubkeys = []cryptotypes.PubKey{
103+
ed25519.GenPrivKey().PubKey(),
104+
ed25519.GenPrivKey().PubKey(),
105+
ed25519.GenPrivKey().PubKey(),
126106
}

0 commit comments

Comments
 (0)