Skip to content

feat: Sudoers#3

Open
MissingNO57 wants to merge 6 commits intomainfrom
feat/genesis_sudoers
Open

feat: Sudoers#3
MissingNO57 wants to merge 6 commits intomainfrom
feat/genesis_sudoers

Conversation

@MissingNO57
Copy link
Copy Markdown

No description provided.

@MissingNO57 MissingNO57 changed the base branch from feat/enable_burn_any_denom to main April 2, 2026 14:46
Copy link
Copy Markdown
Collaborator

@pbukva pbukva left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Collaborator

@pbukva pbukva left a comment

Choose a reason for hiding this comment

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

I see inline comments

Comment on lines +73 to 77
if isSudoAdminFunc == nil {
k.IsSudoAdminFunc = k.DefaultIsSudoAdminFunc
} else {
k.IsSudoAdminFunc = isSudoAdminFunc
}
Copy link
Copy Markdown
Collaborator

@pbukva pbukva Apr 2, 2026

Choose a reason for hiding this comment

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

I would not do this. If someone intentionally passes nil as the input value of the isSudoAdminFunc parameter, then it shall very much mean, that sudoers are disabled.
Caller of this function shall not need to be aware that nil value will be replaced by default impl. of the function.This implicit behaviur can potentially lead to serious implications ...

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.

2 participants