Skip to content

Commit

Permalink
fix: fix message format (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer951123 authored May 11, 2024
1 parent cfcad61 commit 3dae346
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkawallet/bridge",
"version": "0.1.7-0",
"version": "0.1.7-1",
"description": "polkawallet bridge sdk",
"main": "index.js",
"types": "index.d.ts",
Expand Down
20 changes: 20 additions & 0 deletions src/utils/xtokens-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,26 @@ export function createXTokensAssetsParam(
};
}

if (version === "V4") {
return {
V4: {
fun: {
Fungible: amount,
},
id: {
parents: 1,
interior: {
X3: [
{ Parachain: paraChainId },
{ PalletInstance: 50 },
{ GeneralIndex: assetId },
],
},
},
},
};
}

return {
[version]: {
fun: {
Expand Down

0 comments on commit 3dae346

Please sign in to comment.