We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c19552f commit 2fc66fdCopy full SHA for 2fc66fd
1 file changed
src/mappings/encoding.ts
@@ -21,11 +21,12 @@ export const address = {
21
22
export const legacyCurrencyId = {
23
encode: (token: CurrencyId_TokenV6 | CurrencyId_TokenV15): Currency => {
24
+ // handle old type definition that had INTERBTC instead of IBTC
25
if (token.value.__kind === "INTERBTC") {
26
token = {
27
...token,
28
value: {
- __kind: "INTR"
29
+ __kind: "IBTC"
30
}
31
} as CurrencyId_TokenV15;
32
@@ -38,6 +39,7 @@ export const legacyCurrencyId = {
38
39
export const currencyId = {
40
encode: (asset: CurrencyId_V17): Currency => {
41
if (asset.__kind === "ForeignAsset") {
42
+ // TODO: add asset-registry event decoding for more metadata?
43
return new ForeignAsset({
44
asset: asset.value
45
});
0 commit comments