Skip to content

Commit

Permalink
fix updateToken.tset.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Apr 10, 2024
1 parent 8f8a0fc commit 582ebb6
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,22 @@ 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
})
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 () => {
Expand Down

0 comments on commit 582ebb6

Please sign in to comment.