fix lost update

This commit is contained in:
einhorn_b 2024-01-05 17:12:30 +01:00
parent 7b2ca22f01
commit 980517559d

View File

@ -118,12 +118,14 @@ export class TransactionBody extends Message<TransactionBody> {
public getRecipientPublicKey(): Buffer | undefined {
if (this.transfer) {
// 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
return this.deferredTransfer.transfer.recipient
}
return undefined