From 9e3cb91d0de70b66118acddf233ed92620a6bdbb Mon Sep 17 00:00:00 2001 From: chrisli30 Date: Sat, 16 Dec 2023 22:34:27 -0800 Subject: [PATCH 1/2] Fix a problem where currencyId is not set on Turing chains --- packages/config/src/tokens/types/XToken.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/config/src/tokens/types/XToken.ts b/packages/config/src/tokens/types/XToken.ts index 6d927fe..c6e89f8 100644 --- a/packages/config/src/tokens/types/XToken.ts +++ b/packages/config/src/tokens/types/XToken.ts @@ -5,6 +5,7 @@ import { Token, TokenConstructorParams } from "./Token"; // Ensure this path is interface XTokenConstructorParams { asset: TokenConstructorParams; // The 'asset' property is introduced here. + id?: number; isNative: boolean; contractAddress?: string; otherSymbol?: string; @@ -13,7 +14,7 @@ interface XTokenConstructorParams { } class XToken extends Token { - public id: any; // Consider specifying a more precise type if possible. + public id: number | undefined; public isNative: boolean; @@ -29,6 +30,7 @@ class XToken extends Token { // Spreading 'asset' properties here so that they are passed as individual parameters to the super constructor. super({ ...params.asset }); + this.id = params.id; this.isNative = params.isNative; this.contractAddress = params.contractAddress; this.otherSymbol = params.otherSymbol; From fed93dc2b9de30d336d27cc819bd13bed65e16d9 Mon Sep 17 00:00:00 2001 From: chrisli30 Date: Sat, 16 Dec 2023 22:35:35 -0800 Subject: [PATCH 2/2] docs(changeset): Fix a problem where currencyId is not set on Turing chains --- .changeset/honest-lizards-retire.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/honest-lizards-retire.md diff --git a/.changeset/honest-lizards-retire.md b/.changeset/honest-lizards-retire.md new file mode 100644 index 0000000..c149399 --- /dev/null +++ b/.changeset/honest-lizards-retire.md @@ -0,0 +1,5 @@ +--- +"@oak-network/config": patch +--- + +Fix a problem where currencyId is not set on Turing chains