Skip to content

Commit

Permalink
Fix phala tx (#89)
Browse files Browse the repository at this point in the history
* update phala tx params

* update version
  • Loading branch information
qwer951123 authored Aug 23, 2023
1 parent ca0c667 commit 9f9219a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@
"jest": "^28.1.1",
"typescript": "^4.7.4"
},
"stableVersion": "0.1.5-11"
"stableVersion": "0.1.5-12"
}
6 changes: 3 additions & 3 deletions src/adapters/phala.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ export const khalaTokensConfig: Record<string, ExtendedToken> = {
symbol: "KAR",
decimals: 12,
ed: "10000000000",
toRaw: () => "0x0080",
toRaw: () => "0x00800000000000000000000000000000",
},
KUSD: {
name: "KUSD",
symbol: "KUSD",
decimals: 12,
ed: "10000000000",
toRaw: () => "0x0081",
toRaw: () => "0x00810000000000000000000000000000",
},
};

Expand Down Expand Up @@ -244,7 +244,7 @@ class BasePhalaAdapter extends BaseCrossChainAdapter {
interior: {
X2: [
{ Parachain: toChain.paraChainId },
{ GeneralKey: tokenData.toRaw() },
{ GeneralKey: { length: 2, data: tokenData.toRaw() } },
],
},
},
Expand Down

0 comments on commit 9f9219a

Please sign in to comment.