Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp committed May 30, 2024
1 parent 5c21c60 commit 5fd01d4
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 45 deletions.
5 changes: 1 addition & 4 deletions api/cosmos/authz/v1beta1/authz.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x/auth/ante/authz_rules_ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (azd AuthzDecorator) handleStakeAuthzRules(ctx sdk.Context, msg *stakingv1b
return err
}

_, rules := azd.azk.GetAuthzWithRules(ctx, grantee, granter, sdk.MsgTypeURL(&banktypes.MsgSend{}))
_, rules := azd.azk.GetAuthzWithRules(ctx, grantee, granter, sdk.MsgTypeURL(&stakingv1beta1.MsgDelegate{}))

for _, rule := range rules {
if rule.Key == authztypes.AllowedStakeValidators {
Expand Down
78 changes: 38 additions & 40 deletions x/authz/authz.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5fd01d4

Please sign in to comment.