mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 19:27:56 +00:00
fix: resolve all lint errors for CI/CD workflow
- Remove unused supabase import from AppLayout.tsx - Replace any types with proper type assertions in XCMTeleportModal.tsx - Remove unused events parameter from signAndSend callback - Fix any types in PezkuwiContext.tsx debug code - Escape apostrophe in EmailVerification.tsx - Remove unused ArrowDownRight import from AccountBalance.tsx
This commit is contained in:
@@ -114,9 +114,10 @@ export const PezkuwiProvider: React.FC<PezkuwiProviderProps> = ({
|
||||
// Debug: Check Junction type definition
|
||||
try {
|
||||
const junctionType = apiInstance.createType('XcmV3Junction');
|
||||
console.log('🔍 XCM Junction type keys:', (junctionType as any).defKeys || Object.keys(junctionType.toJSON() || {}));
|
||||
const junctionObj = junctionType as unknown as { defKeys?: string[] };
|
||||
console.log('🔍 XCM Junction type keys:', junctionObj.defKeys || Object.keys(junctionType.toJSON() || {}));
|
||||
// Expose api for console debugging
|
||||
(window as any).__PEZKUWI_API__ = apiInstance;
|
||||
(window as unknown as { __PEZKUWI_API__: typeof apiInstance }).__PEZKUWI_API__ = apiInstance;
|
||||
console.log('💡 API exposed as window.__PEZKUWI_API__ for debugging');
|
||||
} catch (e) {
|
||||
console.log('⚠️ Could not check Junction type:', e);
|
||||
|
||||
Reference in New Issue
Block a user