Skip to content

Commit

Permalink
add extra versioned xcm type path
Browse files Browse the repository at this point in the history
  • Loading branch information
mfornos committed Jan 20, 2025
1 parent 45be8a1 commit f00ef83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/server/src/services/agents/xcm/ops/xcm-format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export function asVersionedXcm(data: HexString | Uint8Array, context: ApiContext
*/
export function versionedXcmCodec(context: ApiContext) {
const xcmTypeId =
context.getTypeIdByPath('xcm.VersionedXcm') ?? context.getTypeIdByPath('staging.xcm.VersionedXcm')
context.getTypeIdByPath('xcm.VersionedXcm') ??
context.getTypeIdByPath('staging.xcm.VersionedXcm') ??
context.getTypeIdByPath('staging_xcm.VersionedXcm')
if (xcmTypeId === undefined) {
throw new Error('Versioned XCM type not found in chain registry')
}
Expand Down

0 comments on commit f00ef83

Please sign in to comment.