Skip to content

Commit b1c973b

Browse files
authored
Merge pull request #58 from youwenbusi/feature/store-internal
fix bugs in weidcontract
2 parents bfa64ed + 23a3675 commit b1c973b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/WeIdContract.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ contract WeIdContract {
168168
returns(
169169
address[] memory
170170
){
171-
require(first >= 0 && last > first && last < weids.length, "params are invalid!");
171+
require(first >= 0 && last >= first && last < weids.length, "params are invalid!");
172172
uint256 number = last - first + 1;
173173
address[] memory weidQuery = new address[](number);
174174
for(uint256 i=0; i<number; i++){

0 commit comments

Comments
 (0)