Skip to content

Commit

Permalink
fix (#614)
Browse files Browse the repository at this point in the history
* fix

* g
  • Loading branch information
thelostone-mc authored Jul 23, 2024
1 parent 96f9058 commit c2a562a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/indexer/allo/v2/handleEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,9 @@ export async function handleEvent(
const encodedData = event.params.data;
const values = decodeMACIApplicationData(encodedData);

const metadata = await ipfsGet(values.metadata.pointer) as any;
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const metadata = (await ipfsGet(values.metadata.pointer)) as any;
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
metadata.application.recipient = values.recipientAddress;

const status =
Expand Down Expand Up @@ -789,7 +791,9 @@ export async function handleEvent(
throw new Error(`Invalid strategy name ${round.strategyName}`);
}

const metadata = await ipfsGet(values.metadata.pointer) as any;
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const metadata = (await ipfsGet(values.metadata.pointer)) as any;
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
metadata.application.recipient = values.recipientAddress;

const { timestamp } = await getBlock();
Expand Down

0 comments on commit c2a562a

Please sign in to comment.