Skip to content

Commit

Permalink
Merge pull request #23 from WeBankBlockchain/dev
Browse files Browse the repository at this point in the history
Update LibAddressSet.sol
  • Loading branch information
dalaocu authored Jul 13, 2021
2 parents d9b6da0 + 50016fd commit 1420c93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/data_structure/LibAddressSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ pragma solidity ^0.4.25;

library LibAddressSet {

struct AddressSet {
struct AddressSet {
mapping (address => uint256) indexMapping;
address[] values;
}

function add(AddressSet storage self, address value) internal {
function add(AddressSet storage self, address value) internal {
require(value != address(0x0), "LibAddressSet: value can't be 0x0");
require(!contains(self, value), "LibAddressSet: value already exists in the set.");
self.values.push(value);
Expand Down Expand Up @@ -63,4 +63,4 @@ library LibAddressSet {
}


}
}

0 comments on commit 1420c93

Please sign in to comment.