Skip to content

Commit

Permalink
chore: add placeholder comment for namespace support
Browse files Browse the repository at this point in the history
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
  • Loading branch information
moul committed Oct 28, 2022
1 parent 7061464 commit aec6f80
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/sdk/vm/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ func (vm *VMKeeper) AddPackage(ctx sdk.Context, msg MsgAddPackage) error {
}
// Pay deposit from creator.
pkgAddr := gno.DerivePkgAddr(pkgPath)

// TODO: ACLs.
// - if r/system/names does not exists -> skip validation.
// - loads r/system/names data state.
// - lookup r/system/names.namespaces for `{r,p}/NAMES`.
// - check if caller is in Admins or Editors.
// - check if namespace is not in pause.

err := vm.bank.SendCoins(ctx, creator, pkgAddr, deposit)
if err != nil {
return err
Expand Down

0 comments on commit aec6f80

Please sign in to comment.