Skip to content

Commit c64890a

Browse files
authored
Merge pull request #98 from kleros/feat/erc20-cap-required
Value cap must be configured for an ERC20 tx, for the preview release only
2 parents 0dbbba0 + bf2ebee commit c64890a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/src/EscrowUniversal.sol

+1-1
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)