shazow
@shazow.eth
Is there a generalized way to give another address access to a specific function on a contract? For example, I have a utility NFT and I want to give another address access to call specific functions on it. Perhaps a Gnosis module? Or is there a generic proxy with permissions contract?
1 reply
0 recast
0 reaction
@
0 reply
0 recast
0 reaction
0xmarty_
@mernst.eth
have you looked at OZ’s access control module? You can programmatically grantRoles with it too… https://docs.openzeppelin.com/contracts/4.x/access-control
1 reply
0 recast
0 reaction
shazow
@shazow.eth
I meant for an existing contract. Say there is a utility NFT already deployed, and I own token 42. I want to give your address permission to call doThing(42) on my behalf without transferring the token to you.
0 reply
0 recast
0 reaction