Skip to content

Commit dada0bc

Browse files
committed
fix build error
1 parent 13d860f commit dada0bc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/web/src/services/xcm/xcmUtils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import {
1212
XcmV4AssetAssetFilter,
1313
XcmV4AssetWildAsset,
1414
polkadot_asset_hub,
15-
hydration
15+
hydration,
16+
PolkadotXcmVersionedXcm
1617
} from '@polkadot-api/descriptors';
1718
import { type XcmV4Location } from "@swush/api";
1819
import { AssetWithId } from "@/lib/api";
@@ -175,7 +176,7 @@ export async function calculateHydraDxXcmFees(
175176

176177
// Extract the XCM message
177178
const [_, messages] = targetMessage;
178-
const xcmMessage = messages[0];
179+
const xcmMessage = messages[0] as PolkadotXcmVersionedXcm;
179180

180181
// Calculate initial execution fee
181182
console.log('Debug: Calculating initial execution fee...');

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"test": "pnpm -r test",
1818
"clean": "pnpm -r clean",
1919
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
20-
"start-chopsticks": "npx @acala-network/chopsticks xcm -p packages/chopsticks/config/polkadot_asset_hub.yml -p packages/chopsticks/config/hydration.yml"
20+
"start-chopsticks": "npx @acala-network/chopsticks xcm -p packages/chopsticks/config/polkadot_asset_hub.yml -p packages/chopsticks/config/hydration.yml",
21+
"postinstall": "papi"
2122
},
2223
"devDependencies": {
2324
"@typescript-eslint/eslint-plugin": "^6.21.0",

0 commit comments

Comments
 (0)