Documentation
    Preparing search index...

    Function setQuota

    • Set the state storage quota for an identity.

      Parameters

      • state: AclState

        Current ACL state

      • identity: Identity

        Napplet identity

      • bytes: number

        Quota in bytes

      Returns AclState

      New AclState with the quota set

      const state2 = setQuota(state, id, 1024 * 1024); // 1 MB
      getQuota(state2, id); // 1048576