Skip to content

Commit

Permalink
fix[OA-audit-N09]: Missing check for non-zero address (#4336)
Browse files Browse the repository at this point in the history
Co-authored-by: Pablo Maldonado <pablo@umaproject.org>
  • Loading branch information
md0x and md0x authored Dec 22, 2022
1 parent 1d416c9 commit 9543282
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,9 @@ contract OptimisticAsserter is OptimisticAsserterInterface, Lockable, Ownable, M
}

function _isDisputeAllowed(bytes32 assertionId) internal view returns (bool) {
address em = assertions[assertionId].escalationManagerSettings.escalationManager;
if (!assertions[assertionId].escalationManagerSettings.validateDisputers) return true;
address em = assertions[assertionId].escalationManagerSettings.escalationManager;
if (em == address(0)) return true;
return EscalationManagerInterface(em).isDisputeAllowed(assertionId, msg.sender);
}

Expand Down

0 comments on commit 9543282

Please sign in to comment.