From 43232b9d0adcbead2c2e59a4b03fd47c77442830 Mon Sep 17 00:00:00 2001 From: natsoni Date: Sun, 17 Mar 2024 17:58:26 +0900 Subject: [PATCH] Fix broken load more for P2PK address page --- frontend/src/app/components/address/address.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/address/address.component.ts b/frontend/src/app/components/address/address.component.ts index 7e613dba6..52a66c2be 100644 --- a/frontend/src/app/components/address/address.component.ts +++ b/frontend/src/app/components/address/address.component.ts @@ -253,7 +253,9 @@ export class AddressComponent implements OnInit, OnDestroy { } this.isLoadingTransactions = true; this.retryLoadMore = false; - this.electrsApiService.getAddressTransactions$(this.address.address, this.lastTransactionTxId) + (this.address.is_pubkey + ? this.electrsApiService.getScriptHashTransactions$((this.address.address.length === 66 ? '21' : '41') + this.address.address + 'ac', this.lastTransactionTxId) + : this.electrsApiService.getAddressTransactions$(this.address.address, this.lastTransactionTxId)) .subscribe((transactions: Transaction[]) => { if (transactions && transactions.length) { this.lastTransactionTxId = transactions[transactions.length - 1].txid;