Skip to content

Commit a7e5549

Browse files
author
irvinli
committed
bug fix:LibAddressSet remove: error index
1 parent cf744f4 commit a7e5549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/data_structure/LibAddressSet.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ library LibAddressSet {
4141
uint256 lastindexMapping = self.values.length - 1;
4242
address lastValue = self.values[lastindexMapping];
4343
self.values[toDeleteindexMapping] = lastValue;
44-
self.indexMapping[lastValue] = toDeleteindexMapping;
44+
self.indexMapping[lastValue] = toDeleteindexMapping + 1;
4545
self.values.pop();
4646
}
4747

0 commit comments

Comments
 (0)