access-control:execute-scheduled
Execute an operation through an AccessManager, consuming its schedule when the operation was delayed.
Syntax
Section titled “Syntax”access-control:execute-scheduled <manager> <target> <signature> [...params]Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
manager |
address |
AccessManager address |
target |
address |
Managed contract address |
signature |
write-abi |
Function to call on the target |
[...params] |
any |
Arguments matching the signature types |
Options
Section titled “Options”| Name | Type | Description |
|---|---|---|
--value |
number |
ETH to send with the call (in wei) |
Examples
Section titled “Examples”load access-control
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb
access-control:execute-scheduled $manager $token "setDuration(uint256)" 31536000- Also works for calls that need no delay: the AccessManager relays the call directly when the caller has immediate permission.
- Consumes the schedule created by access-control:schedule when one exists.
See Also
Section titled “See Also”- access-control:schedule — schedule the operation first
- @access-control.canCall — check if a delay applies