From 8ccc4a03bae4e74e4f372380ac57f5e31a464862 Mon Sep 17 00:00:00 2001 From: impelcrypto Date: Tue, 7 Nov 2023 15:56:53 +0800 Subject: [PATCH] feat: updated XCM withdrawal call --- src/modules/xcm/index.ts | 4 ++-- src/v2/repositories/implementations/xcm/AstarXcmRepository.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/xcm/index.ts b/src/modules/xcm/index.ts index 43e157838..5a5ca651a 100644 --- a/src/modules/xcm/index.ts +++ b/src/modules/xcm/index.ts @@ -54,8 +54,8 @@ export let xcmChainObj: XcmChainObj = { img: require('/src/assets/img/chain/polkadot.png'), parachainId: relaychainParaId, endpoints: [ - 'wss://polkadot.api.onfinality.io/public-ws', 'wss://rpc.polkadot.io', + 'wss://polkadot.api.onfinality.io/public-ws', 'wss://1rpc.io/dot', 'wss://polkadot-public-rpc.blockops.network/ws', 'wss://polkadot-rpc.dwellir.com', @@ -291,8 +291,8 @@ export let xcmChainObj: XcmChainObj = { img: require('/src/assets/img/token/pha.png'), parachainId: parachainIds.PHALA, endpoints: [ - 'wss://phala-rpc.dwellir.com', 'wss://api.phala.network/ws', + 'wss://phala-rpc.dwellir.com', 'wss://phala.api.onfinality.io/public-ws', ], subscan: 'https://phala.subscan.io', diff --git a/src/v2/repositories/implementations/xcm/AstarXcmRepository.ts b/src/v2/repositories/implementations/xcm/AstarXcmRepository.ts index e52a67120..4422d93b7 100644 --- a/src/v2/repositories/implementations/xcm/AstarXcmRepository.ts +++ b/src/v2/repositories/implementations/xcm/AstarXcmRepository.ts @@ -95,7 +95,7 @@ export class AstarXcmRepository extends XcmRepository { return await this.buildTxCall( from, endpoint, - 'xtokens', + 'xTokens', 'transferMultiasset', assets, destination,