From c4abfd2c0ac6c778c0b4fb3bcab57260b1799f4e Mon Sep 17 00:00:00 2001 From: mmaurello <93129175+mmaurello@users.noreply.github.com> Date: Tue, 2 Apr 2024 09:52:16 +1300 Subject: [PATCH] change phala endpoint and destination fee balance message (#224) * change phala endpoint and destination fee balance message * add changeset --- .changeset/unlucky-tables-wave.md | 6 ++++++ packages/config/src/chains.ts | 2 +- packages/sdk/src/getTransferData/getSourceData.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changeset/unlucky-tables-wave.md diff --git a/.changeset/unlucky-tables-wave.md b/.changeset/unlucky-tables-wave.md new file mode 100644 index 00000000..0b98a2dc --- /dev/null +++ b/.changeset/unlucky-tables-wave.md @@ -0,0 +1,6 @@ +--- +'@moonbeam-network/xcm-config': patch +'@moonbeam-network/xcm-sdk': patch +--- + +Change phala endpoint and improve error message for destination fees diff --git a/packages/config/src/chains.ts b/packages/config/src/chains.ts index 1fe2110c..1d0620a9 100644 --- a/packages/config/src/chains.ts +++ b/packages/config/src/chains.ts @@ -1217,7 +1217,7 @@ export const phala = new Parachain({ name: 'Phala', parachainId: 2035, ss58Format: 30, - ws: 'wss://api.phala.network/ws', + ws: 'wss://phala-rpc.dwellir.com', }); export const picasso = new Parachain({ diff --git a/packages/sdk/src/getTransferData/getSourceData.ts b/packages/sdk/src/getTransferData/getSourceData.ts index c0cd819b..20b8a82f 100644 --- a/packages/sdk/src/getTransferData/getSourceData.ts +++ b/packages/sdk/src/getTransferData/getSourceData.ts @@ -259,7 +259,7 @@ export async function getFee({ destinationFeeConfig.amount > destinationFeeBalance ) { throw new Error( - `Can't get a fee, make sure you have ${destinationFeeConfig?.amount} ${destinationFeeConfig?.asset.originSymbol} needed for fees in destination`, + `Can't get a fee, make sure you have ${destinationFeeConfig?.amount} ${destinationFeeConfig?.asset.originSymbol} in your source balance, needed for destination fees`, ); } }