Skip to content

Commit

Permalink
change phala endpoint and destination fee balance message (#224)
Browse files Browse the repository at this point in the history
* change phala endpoint and destination fee balance message

* add changeset
  • Loading branch information
mmaurello authored Apr 1, 2024
1 parent 12512b8 commit c4abfd2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/unlucky-tables-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@moonbeam-network/xcm-config': patch
'@moonbeam-network/xcm-sdk': patch
---

Change phala endpoint and improve error message for destination fees
2 changes: 1 addition & 1 deletion packages/config/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/getTransferData/getSourceData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
);
}
}
Expand Down

0 comments on commit c4abfd2

Please sign in to comment.