-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(eibc): filtering per rollapp level when granting authorization #1375
feat(eibc): filtering per rollapp level when granting authorization #1375
Conversation
@@ -50,7 +50,7 @@ Examples: | |||
return fmt.Errorf("failed to parse grantee address: %w", err) | |||
} | |||
|
|||
rollapps, err := cmd.Flags().GetStringSlice(FlagRollapps) | |||
rollappID, err := cmd.Flags().GetString(FlagRollapp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not critical but for the CLI it's better to probably have a way to pass a file with the definition otherwise we're limited for 1 rollapp per operator vs multiple (cause it will override).
the portal can do it though so should be fine.
@@ -50,7 +50,7 @@ Examples: | |||
return fmt.Errorf("failed to parse grantee address: %w", err) | |||
} | |||
|
|||
rollapps, err := cmd.Flags().GetStringSlice(FlagRollapps) | |||
rollappID, err := cmd.Flags().GetString(FlagRollapp) | |||
if err != nil { | |||
return fmt.Errorf("failed to get rollapps: %w", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return fmt.Errorf("failed to get rollapps: %w", err) | |
return fmt.Errorf("failed to get rollapp: %w", err) |
@@ -142,7 +146,7 @@ Examples: | |||
} | |||
|
|||
flags.AddTxFlagsToCmd(cmd) | |||
cmd.Flags().StringSlice(FlagRollapps, []string{}, "An array of Rollapp IDs allowed") | |||
cmd.Flags().StringSlice(FlagRollapp, []string{}, "An array of Rollapp IDs allowed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it an array? seems like we're handling just one rollapp
I'll merge. create a technical debt issue for it as they arent blocking. |
Description
Closes #XXX
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.
PR review checkboxes:
I have...
Unreleased
section inCHANGELOG.md
godoc
commentsSDK Checklist
map
time.Now()
sendCoin
and notSendCoins
Full security checklist here
For Reviewer:
After reviewer approval: