From 582ebb64e38b5a78bc97e928260d97fe06260aca Mon Sep 17 00:00:00 2001 From: canonbrother Date: Wed, 10 Apr 2024 13:25:27 +0800 Subject: [PATCH] fix updateToken.tset.ts --- .../__tests__/category/token/updateToken.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/jellyfish-api-core/__tests__/category/token/updateToken.test.ts b/packages/jellyfish-api-core/__tests__/category/token/updateToken.test.ts index 07df882f3c..a0943f4d3a 100644 --- a/packages/jellyfish-api-core/__tests__/category/token/updateToken.test.ts +++ b/packages/jellyfish-api-core/__tests__/category/token/updateToken.test.ts @@ -64,7 +64,7 @@ describe('Token', () => { const data = await client.token.updateToken(`DTEST#${tokenDTESTId}`, { symbol: 'DDEST', name: 'DDEST', - isDAT: true, + // isDAT: true, // NOTE(canonbrother): Cannot change isDAT flag after DF23Height mintable: false, tradeable: false, finalize: false @@ -72,15 +72,14 @@ describe('Token', () => { expect(typeof data).toStrictEqual('string') await container.generate(1) - const { [tokenDTESTId]: tokenAfter } = await client.token.getToken('DDEST') + const { [tokenDTESTId]: tokenAfter } = await client.token.getToken(`DDEST#${tokenDTESTId}`) expect(tokenAfter.symbol).toStrictEqual('DDEST') expect(tokenAfter.name).toStrictEqual('DDEST') - expect(tokenAfter.isDAT).toStrictEqual(true) expect(tokenAfter.mintable).toStrictEqual(false) expect(tokenAfter.tradeable).toStrictEqual(false) expect(tokenAfter.finalized).toStrictEqual(false) // NOTE(canonbrother): isDAT will not show the ID - expect(tokenAfter.symbolKey).toStrictEqual('DDEST') + expect(tokenAfter.symbolKey).toStrictEqual(`DDEST#${tokenDTESTId}`) }) it('should updateToken by token id', async () => {