Skip to content

Commit cfb0a06

Browse files
Krishang NadgaudaKrishang Nadgauda
authored andcommitted
AirdropERCxxx: bug fix in view function
1 parent b1c4359 commit cfb0a06

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

contracts/airdrop/AirdropERC1155.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ contract AirdropERC1155 is
147147
/// @notice Returns all pending airdrop payments.
148148
function getAllAirdropPaymentsPending() external view returns (AirdropContent[] memory contents) {
149149
uint256 endCount = payeeCount;
150-
uint256 startCount = payeeCount;
150+
uint256 startCount = processedCount;
151151
contents = new AirdropContent[](endCount - startCount);
152152

153153
uint256 idx;

contracts/airdrop/AirdropERC20.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ contract AirdropERC20 is
131131
/// @notice Returns all pending airdrop payments.
132132
function getAllAirdropPaymentsPending() external view returns (AirdropContent[] memory contents) {
133133
uint256 endCount = payeeCount;
134-
uint256 startCount = payeeCount;
134+
uint256 startCount = processedCount;
135135
contents = new AirdropContent[](endCount - startCount);
136136

137137
uint256 idx;

contracts/airdrop/AirdropERC721.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ contract AirdropERC721 is
118118
/// @notice Returns all pending airdrop payments.
119119
function getAllAirdropPaymentsPending() external view returns (AirdropContent[] memory contents) {
120120
uint256 endCount = payeeCount;
121-
uint256 startCount = payeeCount;
121+
uint256 startCount = processedCount;
122122
contents = new AirdropContent[](endCount - startCount);
123123

124124
uint256 idx;

0 commit comments

Comments
 (0)