authz MsgExec ignores all responses but the last one. #9536
Closed
Description
Summary of Bug
authz/MsgExec
takes multiple messages to execute:
type MsgExec struct {
Grantee string
// Authorization Msg requests to execute. Each msg must implement Authorization interface
// The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
// triple and validate it.
Msgs []*types1.Any
}
When dispatching the messages we fail if one of the sub messages fails. However when all succeed, we only return a response from the last message:
cosmos-sdk/x/authz/keeper/keeper.go
Lines 112 to 118 in 0e64fa7
Version
master, 0.43-beta
Solution proposal
Update MsgExecResponse
to get an array of responses.
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned
Activity