@acl:canCall
Whether a caller can immediately call a restricted function of a contract managed by an AccessManager.
Returns: bool
Syntax
Section titled “Syntax”@acl:canCall(manager caller target signature)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
manager | address | AccessManager address |
caller | address | Calling account |
target | address | Managed contract address |
signature | string | Function signature (e.g. mint(address,uint256)) |
Examples
Section titled “Examples”load acl
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb
print @acl:canCall($manager @me $token "mint(address,uint256)")- Returns
trueonly when the caller can execute the function immediately; a member whose grant carries an execution delay getsfalse(the call must go through the AccessManager schedule flow).