From 22cbd0bb92ae13d50d86400ad3e14237b356eea9 Mon Sep 17 00:00:00 2001 From: marshacb Date: Thu, 19 Oct 2023 10:12:16 -0400 Subject: [PATCH] test relay to relay vs local --- src/AssetTransferApi.ts | 2 +- src/createXcmTypes/index.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AssetTransferApi.ts b/src/AssetTransferApi.ts index ee134ee5..e1d29032 100644 --- a/src/AssetTransferApi.ts +++ b/src/AssetTransferApi.ts @@ -608,7 +608,7 @@ export class AssetTransferApi { return Direction.ParaToPara; } - // throw Error('Could not establish a xcm transaction direction'); + throw Error('Could not establish a xcm transaction direction'); } /** diff --git a/src/createXcmTypes/index.ts b/src/createXcmTypes/index.ts index bc550e8f..518dde17 100644 --- a/src/createXcmTypes/index.ts +++ b/src/createXcmTypes/index.ts @@ -1,7 +1,6 @@ // Copyright 2023 Parity Technologies (UK) Ltd. import { Direction } from '../types'; -import { ParaToPara } from './ParaToPara'; import { ParaToSystem } from './ParaToSystem'; import { RelayToPara } from './RelayToPara'; import { RelayToSystem } from './RelayToSystem'; @@ -20,7 +19,7 @@ export const createXcmTypes: ICreateXcmTypeLookup = { RelayToPara, SystemToRelay, RelayToSystem, - ParaToPara, + ParaToPara: {} as ICreateXcmType, ParaToRelay: {} as ICreateXcmType, ParaToSystem, };