mirror of
git://holbrook.no/eth-token-index
synced 2026-05-20 03:51:09 +02:00
Prevent duplicate removal of entries
This commit is contained in:
@@ -98,11 +98,12 @@ contract TokenUniqueSymbolIndex {
|
||||
if (i < l) {
|
||||
tokens[i] = tokens[l];
|
||||
identifierList[i] = identifierList[l];
|
||||
}
|
||||
}
|
||||
registry[tokenIndex[tokens[i]]] = i;
|
||||
tokens.pop();
|
||||
identifierList.pop();
|
||||
registry[tokenIndex[_token]] = 0;
|
||||
tokenIndex[_token] = bytes32(0);
|
||||
|
||||
emit AddressRemoved(_token);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user