You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,7 @@ This patch update also includes minor dependency bumps.
92
92
93
93
### Bug Fixes
94
94
95
+
* (x/epochs) [#25425](https://github.com/cosmos/cosmos-sdk/pull/25425) Fix `InvokeSetHooks` being called with a nil keeper and `AppModule` containing a copy instead of a pointer (hooks set post creating the `AppModule` like with depinject didn't apply because it's a different instance).
95
96
* (client, client/rpc, x/auth/tx) [#24551](https://github.com/cosmos/cosmos-sdk/pull/24551) Handle cancellation properly when supplying context to client methods.
96
97
* (x/authz) [#24638](https://github.com/cosmos/cosmos-sdk/pull/24638) Fixed a minor bug where the grant key was cast as a string and dumped directly into the error message leading to an error string possibly containing invalid UTF-8.
97
98
* (client, client/rpc, x/auth/tx) [#24551](https://github.com/cosmos/cosmos-sdk/pull/24551) Handle cancellation properly when supplying context to client methods.
depinject can automatically add your hooks to the epochs `Keeper`. For it do so, specify an output of your module with the type `epochtypes.EpochHooksWrapper`, ie:
245
+
246
+
```go
247
+
typeTestInputsstruct {
248
+
depinject.In
249
+
}
250
+
251
+
typeTestOutputsstruct {
252
+
depinject.Out
253
+
254
+
Hooks types.EpochHooksWrapper
255
+
}
256
+
257
+
funcDummyProvider(inTestInputs) TestOutputs {
258
+
return TestOutputs{
259
+
Hooks: types.EpochHooksWrapper{
260
+
EpochHooks: testEpochHooks{},
261
+
},
262
+
}
263
+
}
264
+
```
265
+
266
+
for an example see [`depinject_test.go`](https://github.com/cosmos/cosmos-sdk/tree/main/x/epochs/depinject_test.go)
267
+
98
268
### Panic isolation
99
269
100
270
If a given epoch hook panics, its state update is reverted, but we keep
0 commit comments