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

feat: Impl basic module and keeper methods #174

Merged
merged 20 commits into from
Aug 22, 2024

Conversation

neitdung
Copy link
Collaborator

No description provided.


import (
"fmt"
"reflect"

Check notice

Code scanning / CodeQL

Sensitive package import Note

Certain system packages contain functions which may be a possible source of non-determinism
bankKeeper: bankKeeper,
ak: ak,
PrivilegesMap: privilegesMap,
func (k Keeper) AddPrivilege(priv types.PrivilegeI) error {

Choose a reason for hiding this comment

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

why this here, since privilege is set only during keeper initialization, we should not exposed an API to allow to add more privilege

Copy link
Collaborator

@catShaark catShaark Aug 15, 2024

Choose a reason for hiding this comment

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

I think this is a clean way to input the privileges instead of a map. Also, We want to explicitly add each privilege by a separate API call (like when we add middleware to ibc transfer for example) instead of grouping them together in a map.

@catShaark catShaark marked this pull request as ready for review August 22, 2024 14:48
@catShaark catShaark merged commit 1e28ef7 into realiotech:new-asset-module Aug 22, 2024
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