Skip to content

Commit bf2ebee

Browse files
committed
feat: ensure that a value cap is configured to allow an ERC20, for the preview release only
1 parent 0dbbba0 commit bf2ebee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/src/EscrowUniversal.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ contract EscrowUniversal is IEscrow, IArbitrableV2 {
4949
}
5050

5151
modifier shouldNotExceedCap(IERC20 _token, uint256 _amount) {
52-
if (amountCaps[_token] != 0 && _amount > amountCaps[_token]) revert AmountExceedsCap();
52+
if (_amount > amountCaps[_token]) revert AmountExceedsCap();
5353
_;
5454
}
5555

0 commit comments

Comments
 (0)