Skip to content

Commit 2fc66fd

Browse files
author
Theodore Bugnet
committed
fix: IBTC instead of INTR
1 parent c19552f commit 2fc66fd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/mappings/encoding.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ export const address = {
2121

2222
export const legacyCurrencyId = {
2323
encode: (token: CurrencyId_TokenV6 | CurrencyId_TokenV15): Currency => {
24+
// handle old type definition that had INTERBTC instead of IBTC
2425
if (token.value.__kind === "INTERBTC") {
2526
token = {
2627
...token,
2728
value: {
28-
__kind: "INTR"
29+
__kind: "IBTC"
2930
}
3031
} as CurrencyId_TokenV15;
3132
}
@@ -38,6 +39,7 @@ export const legacyCurrencyId = {
3839
export const currencyId = {
3940
encode: (asset: CurrencyId_V17): Currency => {
4041
if (asset.__kind === "ForeignAsset") {
42+
// TODO: add asset-registry event decoding for more metadata?
4143
return new ForeignAsset({
4244
asset: asset.value
4345
});

0 commit comments

Comments
 (0)