Unverified Commit d91f4d4b by Nemil Dalal Committed by GitHub

Consistent spellings of reentrant

Changed `rentrancy_lock` variable to `reentrancy_lock`
parent ddcae625
...@@ -11,7 +11,7 @@ contract ReentrancyGuard { ...@@ -11,7 +11,7 @@ contract ReentrancyGuard {
/** /**
* @dev We use a single lock for the whole contract. * @dev We use a single lock for the whole contract.
*/ */
bool private rentrancy_lock = false; bool private reentrancy_lock = false;
/** /**
* @dev Prevents a contract from calling itself, directly or indirectly. * @dev Prevents a contract from calling itself, directly or indirectly.
...@@ -22,10 +22,10 @@ contract ReentrancyGuard { ...@@ -22,10 +22,10 @@ contract ReentrancyGuard {
* wrapper marked as `nonReentrant`. * wrapper marked as `nonReentrant`.
*/ */
modifier nonReentrant() { modifier nonReentrant() {
require(!rentrancy_lock); require(!reentrancy_lock);
rentrancy_lock = true; reentrancy_lock = true;
_; _;
rentrancy_lock = false; reentrancy_lock = false;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment