File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
apps/web/src/services/xcm Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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' ;
1718import { type XcmV4Location } from "@swush/api" ;
1819import { 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...' ) ;
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments