fixed ts strict errs

This commit is contained in:
tim
2025-11-21 18:37:41 -04:00
parent 2585873d8a
commit 5b450ab303
2 changed files with 4 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ export function useGetAllTokens(offset: number = 0, limit: number = 100) {
// Get chain ID and contract address
const chainId = await publicClient.getChainId();
// @ts-ignore
const address = (chainInfo as Record<string, { v1: { PartyPlanner: string; PartyPoolViewer: string } }>)[chainId.toString()]?.v1?.PartyPlanner;
if (!address) {
@@ -606,6 +607,7 @@ export function useSwapMintAmounts(
// Get chain ID and contract address
const chainId = await publicClient.getChainId();
// @ts-ignore
const viewerAddress = (chainInfo as Record<string, { v1: { PartyPlanner: string; PartyPoolViewer: string } }>)[chainId.toString()]?.v1?.PartyPoolViewer;
if (!viewerAddress) {
@@ -682,6 +684,7 @@ export function useBurnSwapAmounts(
// Get chain ID and contract address
const chainId = await publicClient.getChainId();
// @ts-ignore
const viewerAddress = (chainInfo as Record<string, { v1: { PartyPlanner: string; PartyPoolViewer: string } }>)[chainId.toString()]?.v1?.PartyPoolViewer;
if (!viewerAddress) {

View File

@@ -815,6 +815,7 @@ export function useBurn() {
});
if (decodedLog.eventName === 'Burn') {
// @ts-ignore
const { amounts, lpBurned } = decodedLog.args as {
amounts: bigint[];
lpBurned: bigint;