Skip to content
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

chore: improve the validations of messages #484

Merged
merged 8 commits into from
Oct 18, 2023

Conversation

forcodedancing
Copy link
Contributor

@forcodedancing forcodedancing commented Sep 15, 2023

Description

Improve the basic validation of messages.

Rationale

Chore

Example

NA

Changes

Notable changes:

  • message validations

@forcodedancing forcodedancing changed the title chore: improve the validations of messages [WIP] chore: improve the validations of messages Sep 16, 2023
@forcodedancing forcodedancing changed the title [WIP] chore: improve the validations of messages chore: improve the validations of messages Sep 18, 2023
x/permission/types/types.go Outdated Show resolved Hide resolved
//}
//if !containsCreateObject && s.LimitSize != nil {
// return ErrInvalidStatement.Wrap("The LimitSize option can only be used with CreateObject actions at the bucket level. .")
//}
for _, r := range s.Resources {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we move the GRN check to ValidateRuntime ? I think yes.

Copy link
Contributor Author

@forcodedancing forcodedancing Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we need to move the GRN check to ValidateRuntime?
It does not change between these upgrades. Keep it in ValidateBasic will be useful for CLI.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it may be adjusted in the future.

@unclezoro unclezoro added this pull request to the merge queue Oct 18, 2023
Merged via the queue into bnb-chain:develop with commit 18eaa51 Oct 18, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants