Function: setBridgeContract(address newBridgeContract)
This function registers or updates the bridge contract permitted to initiate withdrawals and redemptions on behalf of users — only callable by ADMIN_ROLE holders.
Inputs
newBridgeContractControl: N/A.
Constraints: Must be nonzero.
Impact: Updates the
_bridgeContractstate variable.
Branches and code coverage
Intended branches
Update the
_bridgeContractwith the new bridge contract address.
Negative behavior
Non-admin callers or calls outside Withdraw mode revert.
Revert if the new bridge contract address is the zero address.
Function call analysis
None.