Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Jun 18, 2024
1 parent 18dc786 commit 238aec6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/indexer/allo/v2/handleEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ export async function handleEvent(
contract: "AlloV2/DirectGrantsLiteStrategy/V1",
address: strategyAddress,
});
break;
case "allov2.MACIQF":
subscribeToContract({
contract: "AlloV2/MACIQF/V1",
Expand Down Expand Up @@ -1369,7 +1370,6 @@ export async function handleEvent(
return [];
}

const recipientId = parseAddress(event.params.recipientId);
const amount = event.params.amount;
const token = parseAddress(event.params.token);
const origin = parseAddress(event.params.origin);
Expand Down Expand Up @@ -1424,7 +1424,7 @@ export async function handleEvent(
roundId: round.id,
applicationId: "undefined",
donorAddress: origin,
recipientAddress: zeroAddress as any,
recipientAddress: parseAddress(zeroAddress),
projectId: "undefined",
transactionHash: event.transactionHash,
blockNumber: event.blockNumber,
Expand Down Expand Up @@ -1553,7 +1553,7 @@ export async function handleEvent(

const message = {
msgType: BigInt(event.params._message.msgType).toString(),
data: event.params._message.data.map((x: any) => BigInt(x).toString()),
data: event.params._message.data.map(x => BigInt(x).toString()),
};

const id = ethers.utils.solidityKeccak256(["bytes"], [bytes]);
Expand All @@ -1571,10 +1571,6 @@ export async function handleEvent(
// Create a unique ID for the message
const uuidId = ethers.utils.solidityKeccak256(["bytes"], [uuidBytes]);

logger.info({
msg: `data: ${message.data}`,
});

return [
{
type: "InsertMessage",
Expand Down

0 comments on commit 238aec6

Please sign in to comment.