Fix camelcase of 'lastvalue' to 'lastValue'
pull/3226/head^2
Ben 3 years ago committed by GitHub
parent f590fcdfe9
commit c239e1af8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      contracts/utils/structs/EnumerableSet.sol

@ -83,12 +83,12 @@ library EnumerableSet {
uint256 lastIndex = set._values.length - 1; uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) { if (lastIndex != toDeleteIndex) {
bytes32 lastvalue = set._values[lastIndex]; bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is // Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue; set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value // Update the index for the moved value
set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
} }
// Delete the slot where the moved value was stored // Delete the slot where the moved value was stored

Loading…
Cancel
Save