mirror of
https://github.com/pezkuwichain/pezkuwi-telegram-miniapp.git
synced 2026-06-12 17:11:02 +00:00
fix: use pezkuwiXCM pallet on teyrchains
This commit is contained in:
+1
-1
@@ -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",
|
||||
|
||||
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user