NEWTON

NEWTON


Popular tags

    Cairo Owner Only Fuctions

    Asked

    4 months ago

    13

    views


    0

    Is there a way besides manually checking the address in every function to make a function contract owner only

    This question was originally posted on Triality

      cairocairo-lang

    1 answers

    0

    OpenZeppelin has provided a contract that can be included in your project that provides the functionality you are looking for. Check out the OZ contract here https://github.com/OpenZeppelin/cairo-contracts/blob/main/src/openzeppelin/access/ownable.cairo. Once imported, you will be able to use all the functionality provided by OZ in your contract.

    This answer was originally posted on Triality

    answered

    4 months ago

    Your answer

    NEWTON

    NEWTON