Skip to content

Commit fbbb124

Browse files
committed
fix heap => set typo
1 parent f538417 commit fbbb124

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

contracts/data/EnumerableSet.sol

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,51 +150,51 @@ library EnumerableSet {
150150
return _remove(set._inner, bytes32(value));
151151
}
152152

153-
function toArray(Bytes32Set storage heap)
153+
function toArray(Bytes32Set storage set)
154154
internal
155155
view
156156
returns (bytes32[] memory)
157157
{
158-
uint256 len = _length(heap._inner);
158+
uint256 len = _length(set._inner);
159159
bytes32[] memory arr = new bytes32[](len);
160160

161161
unchecked {
162162
for (uint256 index = 0; index < len; index++) {
163-
arr[index] = at(heap, index);
163+
arr[index] = at(set, index);
164164
}
165165
}
166166

167167
return arr;
168168
}
169169

170-
function toArray(AddressSet storage heap)
170+
function toArray(AddressSet storage set)
171171
internal
172172
view
173173
returns (address[] memory)
174174
{
175-
uint256 len = _length(heap._inner);
175+
uint256 len = _length(set._inner);
176176
address[] memory arr = new address[](len);
177177

178178
unchecked {
179179
for (uint256 index = 0; index < len; index++) {
180-
arr[index] = at(heap, index);
180+
arr[index] = at(set, index);
181181
}
182182
}
183183

184184
return arr;
185185
}
186186

187-
function toArray(UintSet storage heap)
187+
function toArray(UintSet storage set)
188188
internal
189189
view
190190
returns (uint256[] memory)
191191
{
192-
uint256 len = _length(heap._inner);
192+
uint256 len = _length(set._inner);
193193
uint256[] memory arr = new uint256[](len);
194194

195195
unchecked {
196196
for (uint256 index = 0; index < len; index++) {
197-
arr[index] = at(heap, index);
197+
arr[index] = at(set, index);
198198
}
199199
}
200200

0 commit comments

Comments
 (0)