diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-24 07:43:46 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-25 08:30:56 +0800 |
commit | c28c3db63fb80d5d5e82ccd3b327cb8c408cc6fa (patch) | |
tree | 0e25c29cb9d639441d956505f49555f2ed391603 /packages/contracts/src/2.0.0/utils | |
parent | a09ee907396d35468e0ad632fb990cb1c8870b49 (diff) | |
download | dexon-sol-tools-c28c3db63fb80d5d5e82ccd3b327cb8c408cc6fa.tar.gz dexon-sol-tools-c28c3db63fb80d5d5e82ccd3b327cb8c408cc6fa.tar.zst dexon-sol-tools-c28c3db63fb80d5d5e82ccd3b327cb8c408cc6fa.zip |
Only use one nonReentrant modifier, remove modifier from fillOrderNoThrow variations
Diffstat (limited to 'packages/contracts/src/2.0.0/utils')
-rw-r--r-- | packages/contracts/src/2.0.0/utils/ReentrancyGuard/ReentrancyGuard.sol | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/packages/contracts/src/2.0.0/utils/ReentrancyGuard/ReentrancyGuard.sol b/packages/contracts/src/2.0.0/utils/ReentrancyGuard/ReentrancyGuard.sol index 2b980c7ca..1dee512d4 100644 --- a/packages/contracts/src/2.0.0/utils/ReentrancyGuard/ReentrancyGuard.sol +++ b/packages/contracts/src/2.0.0/utils/ReentrancyGuard/ReentrancyGuard.sol @@ -23,21 +23,9 @@ contract ReentrancyGuard { // Locked state of mutex bool private locked = false; - /// @dev Functions with this modifier cannot be reentered. - modifier nonReentrant() { - // Ensure mutex is unlocked - require( - !locked, - "REENTRANCY_ILLEGAL" - ); - - // Perform function call - _; - } - /// @dev Functions with this modifer cannot be reentered. The mutex will be locked /// before function execution and unlocked after. - modifier lockMutex() { + modifier nonReentrant() { // Ensure mutex is unlocked require( !locked, |