diff --git a/src/api/account.ts b/src/api/account.ts index f9096ea5..ee4cfd9c 100644 --- a/src/api/account.ts +++ b/src/api/account.ts @@ -51,7 +51,7 @@ export interface IAccountInfoResponse { /** * The information URI of the account */ - infoURI?: string; + infoURL?: string; /** * The metadata of the account diff --git a/src/services/account.ts b/src/services/account.ts index 69ec447a..c9f08ef3 100644 --- a/src/services/account.ts +++ b/src/services/account.ts @@ -23,14 +23,14 @@ type AccountServiceParameters = ServiceProperties & AccountServiceProperties; * @property {number} balance * @property {number} nonce * @property {number} electionIndex - * @property {string | null} infoURI + * @property {string | null} infoURL * @property {Account} account */ export type AccountData = { account: Account; } & Pick< IAccountInfoResponse, - 'address' | 'balance' | 'nonce' | 'electionIndex' | 'infoURI' | 'sik' | 'transfersCount' | 'feesCount' + 'address' | 'balance' | 'nonce' | 'electionIndex' | 'infoURL' | 'sik' | 'transfersCount' | 'feesCount' >; export type ArchivedAccountData = Pick; diff --git a/test/integration/account.test.ts b/test/integration/account.test.ts index 454f7006..0c9744b4 100644 --- a/test/integration/account.test.ts +++ b/test/integration/account.test.ts @@ -20,7 +20,7 @@ describe('Account integration tests', () => { expect(accountInfo.address).toEqual(strip0x(walletAddress).toLowerCase()); expect(accountInfo.balance).toBeGreaterThan(0); expect(accountInfo.electionIndex).toEqual(0); - expect(accountInfo.infoURI).toEqual('ipfs://bafybeigv4mfmn3tyusbwmskfn6xhoyvv2i2svdq7pns6dphdivefr62k3q'); + expect(accountInfo.infoURL).toEqual('ipfs://bafybeigv4mfmn3tyusbwmskfn6xhoyvv2i2svdq7pns6dphdivefr62k3q'); expect(accountInfo.nonce).toEqual(0); }, 75000); it('should bootstrap a new account using a raw faucet package payload', async () => { @@ -63,7 +63,7 @@ describe('Account integration tests', () => { ], }), }); - expect(account.infoURI).toEqual('ipfs://bafybeigut3hara5spqfqgxrzlwjj7cp4avvdmcir4jdxaoyg3zlyfjdmfi'); + expect(account.infoURL).toEqual('ipfs://bafybeigut3hara5spqfqgxrzlwjj7cp4avvdmcir4jdxaoyg3zlyfjdmfi'); expect(account.account.languages).toStrictEqual(['es']); expect(account.account.name).toStrictEqual({ es: 'test', @@ -120,7 +120,7 @@ describe('Account integration tests', () => { ], }) ); - expect(account.infoURI).toEqual('ipfs://bafybeig3a7hb2nmjrppwk2ywcalbiliakvkuckerr57aoicez5nwk6vsh4'); + expect(account.infoURL).toEqual('ipfs://bafybeig3a7hb2nmjrppwk2ywcalbiliakvkuckerr57aoicez5nwk6vsh4'); expect(account.account.name).toStrictEqual({ es: 'test2', asdasdsad: 'test2',