fix: issue 9127. teleport reactivated (#9529)

* fix: issue 9127. teleport reactivated

* fix: issue 9127. restricted xcm version to V1 and V2

* fix: issue 9127. using xcm V3 for asset teleport
This commit is contained in:
loanMaster 2023-06-17 11:49:52 +02:00 committed by GitHub
parent fc2a452e90
commit e4a5794b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 8 deletions

View File

@ -817,7 +817,7 @@ export const prodParasKusamaCommon: EndpointOption[] = [
'IBP-GeoDNS2': 'wss://sys.dotters.network/encointer-kusama',
OnFinality: 'wss://encointer.api.onfinality.io/public-ws'
},
teleport: [-1],
teleport: [], // teleport is temporarily disabled until xcm V3 is supported
text: 'Encointer Network',
ui: {
color: '#0000cc',

View File

@ -11,9 +11,7 @@ export default function create (t: TFunction): Route {
Component: Modal,
Modal,
display: {
// TODO We need to move to XCM v3 at some point, until such time we disable
// this functionality (we really should have kept it until later versions)
isHidden: true,
isHidden: false,
needsAccounts: true,
needsApi: [
[

View File

@ -77,7 +77,7 @@ function Teleport ({ onClose }: Props): React.ReactElement<Props> | null {
const params = useMemo(
() => [
{
V1: isParaTeleport
V3: isParaTeleport
? {
interior: 'Here',
parents: 1
@ -92,12 +92,12 @@ function Teleport ({ onClose }: Props): React.ReactElement<Props> | null {
}
},
{
V1: {
V3: {
interior: {
X1: {
AccountId32: {
id: api.createType('AccountId32', recipientId).toHex(),
network: 'Any'
network: null
}
}
},
@ -105,7 +105,7 @@ function Teleport ({ onClose }: Props): React.ReactElement<Props> | null {
}
},
{
V1: [{
V3: [{
fun: {
Fungible: amount
},