Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Jul 19, 2023
1 parent a05da21 commit 6bef495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/core/accounts/facets/AccountsDonationMatch.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ contract AccountsDonationMatch is ReentrancyGuardFacet, IAccountsEvents, IAccoun
address inputtoken;
if (details.enumData == AccountMessages.DonationMatchEnum.HaloTokenReserve) {
require(registrar_config.haloToken != address(0), "Invalid HALO address in Registrar");

inputtoken = registrar_config.haloToken;
} else {
require(details.data.reserveToken != address(0), "Invalid reserve token address");
Expand All @@ -131,6 +130,7 @@ contract AccountsDonationMatch is ReentrancyGuardFacet, IAccountsEvents, IAccoun
registrar_config.donationMatchEmitter
);

// TODO: might be a good idea to create this contract using a factory, will improve testability as well
address donationMatch = address(
new ProxyContract(registrar_config.donationMatchContract, registrar_config.proxyAdmin, data)
);
Expand Down

0 comments on commit 6bef495

Please sign in to comment.