Consistent spellings of reentrant

Changed `rentrancy_lock` variable to `reentrancy_lock`
This commit is contained in:
Nemil Dalal
2017-12-06 16:03:55 -08:00
committed by GitHub
parent ddcae6254e
commit d91f4d4bc1

View File

@ -11,7 +11,7 @@ contract ReentrancyGuard {
/**
* @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.
@ -22,10 +22,10 @@ contract ReentrancyGuard {
* wrapper marked as `nonReentrant`.
*/
modifier nonReentrant() {
require(!rentrancy_lock);
rentrancy_lock = true;
require(!reentrancy_lock);
reentrancy_lock = true;
_;
rentrancy_lock = false;
reentrancy_lock = false;
}
}