Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AuthorityUtils

Functions

canCallWithDelay

Since AccessManager implements an extended IAuthority interface, invoking canCall with backwards compatibility for the preexisting IAuthority interface requires special care to avoid reverting on insufficient return data. This helper function takes care of invoking canCall in a backwards compatible way without reverting.

function canCallWithDelay(address authority, address caller, address target, bytes4 selector)
    internal
    view
    returns (bool immediate, uint32 delay);