Skip to content

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
Signed-off-by: moul <94029+moul@users.noreply.github.com>
  • Loading branch information
moul committed Oct 21, 2024
1 parent a39d172 commit 0342b61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gno.land/pkg/sdk/vm/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,11 @@ func (vm *VMKeeper) getGnoTransactionStore(ctx sdk.Context) gno.TransactionStore
var reNamespace = regexp.MustCompile(`^gno.land/(?:r|p)/([\.~_a-zA-Z0-9]+)`)

const sysUsersPkgParamKey = "vm/gno.land/r/sys/params.string"
const defaultSysUsersPkg = "gno.land/r/sys/users"

// checkNamespacePermission check if the user as given has correct permssion to on the given pkg path
func (vm *VMKeeper) checkNamespacePermission(ctx sdk.Context, creator crypto.Address, pkgPath string) error {
var sysUsersPkg = "gno.land/r/sys/users"
sysUsersPkg := defaultSysUsersPkg
vm.prmk.GetIfExists(ctx, sysUsersPkgParamKey, &sysUsersPkg)

store := vm.getGnoTransactionStore(ctx)
Expand Down

0 comments on commit 0342b61

Please sign in to comment.