diff --git a/src/model/apostille/ApostillePublicAccount.ts b/src/model/apostille/ApostillePublicAccount.ts index c79a6ff..abd74a5 100644 --- a/src/model/apostille/ApostillePublicAccount.ts +++ b/src/model/apostille/ApostillePublicAccount.ts @@ -73,4 +73,12 @@ export class ApostillePublicAccount { ); } + get publicKey(): string { + return this.publicAccount.publicKey; + } + + get address(): Address { + return this.publicAccount.address; + } + } diff --git a/tests/unit/model/apostille/ApostillePublicAccount.spec.ts b/tests/unit/model/apostille/ApostillePublicAccount.spec.ts index be6e999..8d4b83e 100644 --- a/tests/unit/model/apostille/ApostillePublicAccount.spec.ts +++ b/tests/unit/model/apostille/ApostillePublicAccount.spec.ts @@ -46,6 +46,14 @@ describe('apostille public account transaction methods should work properly', () const updateTransaction = apostillePublicAccount.update('LuxTag is awesome'); + it('has address getter', () => { + expect(apostillePublicAccount.publicAccount.address.plain()).toEqual(apostillePublicAccount.address.plain()); + }); + + it('has publicKey getter', () => { + expect(apostillePublicAccount.publicAccount.publicKey).toEqual(apostillePublicAccount.publicKey); + }); + it('should return correct update transaction', () => { expect(updateTransaction.recipient).toEqual(apostillePublicAccount.publicAccount.address); });