fix: use pezkuwiXCM pallet on teyrchains

This commit is contained in:
2026-02-07 23:47:52 +03:00
parent 22d684c00e
commit d2b1dd48ae
3 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "pezkuwi-telegram-miniapp",
"version": "1.0.164",
"version": "1.0.165",
"type": "module",
"description": "Pezkuwichain Telegram Mini App - Forum, Announcements, Rewards",
"author": "Pezkuwichain Team",
+4 -5
View File
@@ -327,12 +327,11 @@ export function FundFeesModal({ isOpen, onClose }: Props) {
const weightLimit = 'Unlimited';
// Find which XCM pallet exists on this chain
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const xcmPallet = (sourceApi.tx as any).xcmPallet || (sourceApi.tx as any).polkadotXcm;
// Relay chain uses xcmPallet, teyrchains use pezkuwiXCM
const xcmPallet = (sourceApi.tx as any).xcmPallet || (sourceApi.tx as any).pezkuwiXCM;
if (!xcmPallet?.limitedTeleportAssets) {
const available = Object.keys(sourceApi.tx).filter((p) => p.toLowerCase().includes('xcm'));
throw new Error(`XCM pallet nehate dîtin. Heyî: ${available.join(', ') || 'tune'}`);
throw new Error('XCM pallet nehate dîtin');
}
const tx = xcmPallet.limitedTeleportAssets(
+3 -3
View File
@@ -1,5 +1,5 @@
{
"version": "1.0.164",
"buildTime": "2026-02-07T19:46:55.715Z",
"buildNumber": 1770493615716
"version": "1.0.165",
"buildTime": "2026-02-07T20:47:52.583Z",
"buildNumber": 1770497272583
}