Skip to content

Commit

Permalink
-wip- use new Xcm location type name
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Apr 18, 2024
1 parent 061f3ec commit 323c9a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/utils/src/polkadot/polkadot.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { typesBundle } from '@polkadot/apps-config';
import LRU from 'lru-cache';

export enum MRLTypes {
// TODO handle both types according to RT version
XcmVersionedMultiLocation = 'XcmVersionedMultiLocation',
XcmVersionedLocation = 'XcmVersionedLocation',
XcmRoutingUserAction = 'XcmRoutingUserAction',
VersionedUserAction = 'VersionedUserAction',
}
Expand All @@ -28,7 +30,7 @@ export async function getPolkadotApi(ws: string): Promise<ApiPromise> {
provider: new WsProvider(ws),
types: {
[MRLTypes.XcmRoutingUserAction]: {
destination: MRLTypes.XcmVersionedMultiLocation,
destination: MRLTypes.XcmVersionedLocation,
},
[MRLTypes.VersionedUserAction]: {
_enum: { V1: MRLTypes.XcmRoutingUserAction },
Expand Down

0 comments on commit 323c9a7

Please sign in to comment.