Skip to content

Commit

Permalink
Revert contract type to ERC20 to check balances.
Browse files Browse the repository at this point in the history
  • Loading branch information
BillSchumacher committed Mar 22, 2024
1 parent 8ba28c6 commit beb7e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/foundry/contracts/extensions/ERC20ProofOfBurn.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ abstract contract ERC20ProofOfBurn is Context, ERC20 {
uint256 addressLength = _burnAddresses.length;
uint256 contractLength = _burnContracts.length;
for (uint256 i; i < contractLength; i++) {
ERC20BurnRegistry tokenContract = ERC20BurnRegistry(eligibleBurnContracts[i]);
ERC20 tokenContract = ERC20(eligibleBurnContracts[i]);
for (uint256 j; j < addressLength; j++) {
balance += tokenContract.balanceOf(eligibleBurnAddresses[j]);
}
Expand Down

0 comments on commit beb7e71

Please sign in to comment.