From b2bd936176a8645d827a79517772b818ce071e7e Mon Sep 17 00:00:00 2001 From: Sayo <82053242+wtfsayo@users.noreply.github.com> Date: Wed, 11 Dec 2024 19:09:00 +0530 Subject: [PATCH] fix escrow display v1 --- .../components/ProposalDescription/MilestoneDetails.tsx | 2 +- apps/web/src/pages/api/decode.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/web/src/modules/proposal/components/ProposalDescription/MilestoneDetails.tsx b/apps/web/src/modules/proposal/components/ProposalDescription/MilestoneDetails.tsx index 4047fd6a..7395c15f 100644 --- a/apps/web/src/modules/proposal/components/ProposalDescription/MilestoneDetails.tsx +++ b/apps/web/src/modules/proposal/components/ProposalDescription/MilestoneDetails.tsx @@ -78,7 +78,7 @@ export const MilestoneDetails: React.FC = ({ decodedTxnData?._escrowData?.value as Hex ) - const invoiceCid = convertByte32ToIpfsCidV0((decodedAbiData as never)?.[4]) + const invoiceCid = convertByte32ToIpfsCidV0((decodedAbiData as never)?.[5]) const clientAddress = (decodedAbiData as never)?.[0] // Fetch invoice data from IPFS diff --git a/apps/web/src/pages/api/decode.ts b/apps/web/src/pages/api/decode.ts index 26f72ccd..d69c23ee 100644 --- a/apps/web/src/pages/api/decode.ts +++ b/apps/web/src/pages/api/decode.ts @@ -10,8 +10,6 @@ import { CHAIN_ID } from 'src/typings' export default async function handler(req: NextApiRequest, res: NextApiResponse) { const { contract, calldata, chain } = req.body - console.log({ contract, calldata, chain }) - if (!contract) return res.status(404).json({ error: 'no address request' }) if (!calldata) return res.status(404).json({ error: 'no calldata request' }) if (!chain) return res.status(404).json({ error: 'no chain request' })