We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4896c2 commit 016389cCopy full SHA for 016389c
1 file changed
x/circuit/ante/circuit.go
@@ -24,6 +24,10 @@ func NewCircuitBreakerDecorator(ck CircuitBreaker) CircuitBreakerDecorator {
24
}
25
26
27
+// If you copy this as reference and your app has the authz module enabled, you must either:
28
+// - recursively check for nested authz.Exec messages in this function.
29
+// - or error early if a nested authz grant is found.
30
+// The circuit AnteHandler handles this with baseapp's service router: https://github.com/cosmos/cosmos-sdk/issues/18632.
31
func (cbd CircuitBreakerDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
32
// loop through all the messages and check if the message type is allowed
33
for _, msg := range tx.GetMsgs() {
0 commit comments