Skip to content

Commit

Permalink
fix escrow display v1
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsayo committed Dec 11, 2024
1 parent bf4b754 commit b2bd936
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const MilestoneDetails: React.FC<MilestoneDetailsProps> = ({
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
Expand Down
2 changes: 0 additions & 2 deletions apps/web/src/pages/api/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down

0 comments on commit b2bd936

Please sign in to comment.