NEWTON
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
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
Cairo: How do write a log function in Cairo
Cairo: Getting function selector
Cairo Passing Functions
Cairo: How do I find the current contract's address?
Cairo Error calling function: Expected 'function_name' to be a struct. Found: 'function'.
Cairo: How to return true from a function?
Declaring Strings in Cairo
How do I create my own account abstraction using starknetjs?
How can I connect a StarkNet account using starknetjs?
Cairo: Unknown value for memory cell at address
If I want to use starkex do I have to deploy my custom starkex contracts?
Hey, is there anyway to debug Cairo contracts in hardhat environment? Something like hardhat console in solidity
How can I prepare my Cairo lang project for an audit?
How to make recursive function in Cairo Lang?