Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

docs: changes the way ACL operations are handled #765

@poppyseedDev

Description

@poppyseedDev

related to pr: #454

This PR offers chaining for ACL operations, such as these two code snippets work the same.

function _approve(address owner, address spender, euint64 amount) internal virtual {
         allowances[owner][spender] = amount;
         TFHE.allowThis(amount);
         TFHE.allow(amount, owner);
         TFHE.allow(amount, spender);
     }
using TFHE for euint64;

...

function _approve(address owner, address spender, euint64 amount) internal virtual {
        allowances[owner][spender] = amount;
        amount.allowThis().allow(owner).allow(spender);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions