Skip to content

Commit

Permalink
Ad more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed May 16, 2024
1 parent cb208fa commit 9ae78db
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/services/chains/evm/draftDonationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ export async function matchDraftDonations(
let transferCallData = draftDonation.expectedCallData;
logger.debug('matchDraftDonations() transferCallData', {
transferCallData,
txAmount: ethers.utils.formatEther(transaction.value),
txHash: transaction.hash,
transaction,
});
if (!transferCallData) {
const token = await findTokenByNetworkAndAddress(
Expand All @@ -150,6 +149,13 @@ export async function matchDraftDonations(
}

if (transaction.input.toLowerCase() !== transferCallData) {
logger.debug(
'matchDraftDonations() transaction.input.toLowerCase() !== transferCallData',
{
transferCallData,
transaction,
},
);
continue;
}

Expand Down

0 comments on commit 9ae78db

Please sign in to comment.