File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/web/src/services/xcm Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ export async function calculateHydraDxXcmFees(
176176
177177 // Extract the XCM message
178178 const [ _ , messages ] = targetMessage ;
179- const xcmMessage = messages [ 0 ] as PolkadotXcmVersionedXcm ;
179+ const xcmMessage = messages [ 0 ] ;
180180
181181 // Calculate initial execution fee
182182 console . log ( 'Debug: Calculating initial execution fee...' ) ;
@@ -209,7 +209,7 @@ export async function calculateHydraDxXcmFees(
209209
210210 // Calculate HydraDX execution fees using the extracted message
211211 console . log ( 'Debug: Calculating HydraDX execution fees...' ) ;
212- const remoteXcmWeight = await hydraDxApi . apis . XcmPaymentApi . query_xcm_weight ( xcmMessage ) ;
212+ const remoteXcmWeight = await hydraDxApi . apis . XcmPaymentApi . query_xcm_weight ( xcmMessage as PolkadotXcmVersionedXcm ) ;
213213 if ( ! remoteXcmWeight . success ) {
214214 throw new Error ( "Failed to calculate HydraDX execution weight" ) ;
215215 }
You can’t perform that action at this time.
0 commit comments