Skip to content

Commit

Permalink
Merge pull request #52 from WeBankFinTech/release/1.2.29
Browse files Browse the repository at this point in the history
Release/1.2.29
  • Loading branch information
junqizhang-dev authored Apr 12, 2021
2 parents 40b10ee + 9203d4b commit fb99ba6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions contracts/AuthorityIssuerController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ contract AuthorityIssuerController {
AuthorityIssuerRetLog(OPERATION_REMOVE, result, addr);
}

function getTotalIssuer() public constant returns (uint) {
return authorityIssuerData.getDatasetLength();
}

function getAuthorityIssuerAddressList(
uint startPos,
uint num
Expand Down
4 changes: 2 additions & 2 deletions contracts/CptController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ contract CptController {
}
uint[] memory result = new uint[](dataLength);
for (uint i = 0; i < dataLength; i++) {
result[i] = cptData.getCptIdFromIndex(i);
result[i] = cptData.getCptIdFromIndex(startPos + i);
}
return result;
}
Expand All @@ -465,7 +465,7 @@ contract CptController {
}
uint[] memory result = new uint[](dataLength);
for (uint i = 0; i < dataLength; i++) {
result[i] = cptData.getCptIdFromIndex(i);
result[i] = cptData.getCptIdFromIndex(startPos + i);
}
return result;
}
Expand Down

0 comments on commit fb99ba6

Please sign in to comment.