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
* (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).
72
73
* (client, client/rpc, x/auth/tx) [#24551](https://github.com/cosmos/cosmos-sdk/pull/24551) Handle cancellation properly when supplying context to client methods.
73
74
* (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.
74
75
* (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