diff --git a/docs/node/CATEGORIES/08-account.md b/docs/node/CATEGORIES/08-account.md index 94f7c57bb9..70797a9f38 100644 --- a/docs/node/CATEGORIES/08-account.md +++ b/docs/node/CATEGORIES/08-account.md @@ -43,6 +43,7 @@ interface AccountResult { interface AccountOwner { asm: string + hex: string reqSigs: BigNumber type: string addresses: string[] diff --git a/packages/jellyfish-api-core/__tests__/category/account/listAccounts.test.ts b/packages/jellyfish-api-core/__tests__/category/account/listAccounts.test.ts index de52af4977..aa24aa1d66 100644 --- a/packages/jellyfish-api-core/__tests__/category/account/listAccounts.test.ts +++ b/packages/jellyfish-api-core/__tests__/category/account/listAccounts.test.ts @@ -44,6 +44,7 @@ describe('Account', () => { expect(typeof account.key).toStrictEqual('string') expect(typeof account.owner === 'object').toStrictEqual(true) expect(typeof account.owner.asm).toStrictEqual('string') + expect(typeof account.owner.hex).toStrictEqual('string') expect(account.owner.reqSigs instanceof BigNumber).toStrictEqual(true) expect(typeof account.owner.type).toStrictEqual('string') expect(account.owner.addresses.length).toBeGreaterThan(0) @@ -107,6 +108,7 @@ describe('Account', () => { expect(typeof account.key).toStrictEqual('string') expect(typeof account.owner === 'object').toStrictEqual(true) expect(typeof account.owner.asm).toStrictEqual('string') + expect(typeof account.owner.hex).toStrictEqual('string') expect(account.owner.reqSigs instanceof BigNumber).toStrictEqual(true) expect(typeof account.owner.type).toStrictEqual('string') expect(account.owner.addresses.length).toBeGreaterThan(0) @@ -126,6 +128,7 @@ describe('Account', () => { expect(typeof account.key).toStrictEqual('string') expect(typeof account.owner === 'object').toStrictEqual(true) expect(typeof account.owner.asm).toStrictEqual('string') + expect(typeof account.owner.hex).toStrictEqual('string') expect(account.owner.reqSigs instanceof BigNumber).toStrictEqual(true) expect(typeof account.owner.type).toStrictEqual('string') expect(account.owner.addresses.length).toBeGreaterThan(0) @@ -141,6 +144,7 @@ describe('Account', () => { expect(typeof account.key).toStrictEqual('string') expect(typeof account.owner === 'object').toStrictEqual(true) expect(typeof account.owner.asm).toStrictEqual('string') + expect(typeof account.owner.hex).toStrictEqual('string') expect(account.owner.reqSigs instanceof BigNumber).toStrictEqual(true) expect(typeof account.owner.type).toStrictEqual('string') expect(account.owner.addresses.length).toBeGreaterThan(0) diff --git a/packages/jellyfish-api-core/src/category/account.ts b/packages/jellyfish-api-core/src/category/account.ts index ba0045bfba..c78b5f827d 100644 --- a/packages/jellyfish-api-core/src/category/account.ts +++ b/packages/jellyfish-api-core/src/category/account.ts @@ -403,6 +403,7 @@ export interface AccountResult { export interface AccountOwner { asm: string + hex: string reqSigs: BigNumber type: string addresses: string[]