aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/2.0.0/utils/ReentrancyGuard/ReentrancyGuard.sol
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-08-24 07:43:46 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-08-25 08:30:56 +0800
commitc28c3db63fb80d5d5e82ccd3b327cb8c408cc6fa (patch)
tree0e25c29cb9d639441d956505f49555f2ed391603 /packages/contracts/src/2.0.0/utils/ReentrancyGuard/ReentrancyGuard.sol
parenta09ee907396d35468e0ad632fb990cb1c8870b49 (diff)
downloaddexon-sol-tools-c28c3db63fb80d5d5e82ccd3b327cb8c408cc6fa.tar
dexon-sol-tools-c28c3db63fb80d5d5e82ccd3b327cb8c408cc6fa.tar.gz
dexon-sol-tools-c28c3db63fb80d5d5e82ccd3b327cb8c408cc6fa.tar.bz2
dexon-sol-tools-c28c3db63fb80d5d5e82ccd3b327cb8c408cc6fa.tar.lz
dexon-sol-tools-c28c3db63fb80d5d5e82ccd3b327cb8c408cc6fa.tar.xz
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/ReentrancyGuard/ReentrancyGuard.sol')
-rw-r--r--packages/contracts/src/2.0.0/utils/ReentrancyGuard/ReentrancyGuard.sol14
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,