This commit is contained in:
Einhornimmond 2023-12-30 09:17:14 +01:00
parent 6b64f2036c
commit 9cfd0f973d

View File

@ -126,14 +126,14 @@ export class TransactionBody extends Message<TransactionBody> {
public getRecipientPublicKey(): Buffer | undefined {
if (this.transfer) {
// this.transfer.recipient contains the publicKey of the recipient
// this.transfer.recipient contains the publicKey of the recipient
return this.transfer.recipient
}
if (this.creation) {
return this.creation.recipient.pubkey
}
if (this.deferredTransfer) {
// this.deferredTransfer.transfer.recipient contains the publicKey of the recipient
// this.deferredTransfer.transfer.recipient contains the publicKey of the recipient
return this.deferredTransfer.transfer.recipient
}
return undefined