We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf744f4 commit a7e5549Copy full SHA for a7e5549
contracts/data_structure/LibAddressSet.sol
@@ -41,7 +41,7 @@ library LibAddressSet {
41
uint256 lastindexMapping = self.values.length - 1;
42
address lastValue = self.values[lastindexMapping];
43
self.values[toDeleteindexMapping] = lastValue;
44
- self.indexMapping[lastValue] = toDeleteindexMapping;
+ self.indexMapping[lastValue] = toDeleteindexMapping + 1;
45
self.values.pop();
46
}
47
0 commit comments