Skip to content

Commit 1456f7b

Browse files
committed
[skip ci] rename blob_tx_count to blob_transaction_count
1 parent fcfadbc commit 1456f7b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

mocks/blocks/block.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export const withBlobTxs: Block = {
215215
blob_gas_used: '393216',
216216
burnt_blob_fees: '8461393325064192',
217217
excess_blob_gas: '79429632',
218-
blob_tx_count: 1,
218+
blob_transaction_count: 1,
219219
};
220220

221221
export const withWithdrawals: Block = {

types/api/block.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface Block {
5454
blob_gas_used?: string;
5555
burnt_blob_fees?: string;
5656
excess_blob_gas?: string;
57-
blob_tx_count?: number;
57+
blob_transaction_count?: number;
5858
// ZKSYNC FIELDS
5959
zksync?: Omit<ZkSyncBatchesItem, 'number' | 'transaction_count' | 'timestamp'> & {
6060
batch_number: number | null;

ui/block/BlockDetails.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ const BlockDetails = ({ query }: Props) => {
126126
</LinkInternal>
127127
);
128128

129-
const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_tx_count) ? (
129+
const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_transaction_count) ? (
130130
<>
131131
<span> including </span>
132132
<LinkInternal href={ route({ pathname: '/block/[height_or_hash]', query: { height_or_hash: heightOrHash, tab: 'blob_txs' } }) }>
133-
{ data.blob_tx_count } blob txn{ data.blob_tx_count === 1 ? '' : 's' }
133+
{ data.blob_transaction_count } blob txn{ data.blob_transaction_count === 1 ? '' : 's' }
134134
</LinkInternal>
135135
</>
136136
) : null;

ui/block/useBlockBlobTxsQuery.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function useBlockBlobTxsQuery({ heightOrHash, blockQuery, tab }:
1616
pathParams: { height_or_hash: heightOrHash },
1717
filters: { type: 'blob_transaction' },
1818
options: {
19-
enabled: Boolean(tab === 'blob_txs' && !blockQuery.isPlaceholderData && blockQuery.data?.blob_tx_count),
19+
enabled: Boolean(tab === 'blob_txs' && !blockQuery.isPlaceholderData && blockQuery.data?.blob_transaction_count),
2020
placeholderData: generateListStub<'block_txs'>(TX, 3, { next_page_params: null }),
2121
refetchOnMount: false,
2222
},

ui/pages/Block.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const BlockPageContent = () => {
7777
</>
7878
),
7979
},
80-
config.features.dataAvailability.isEnabled && blockQuery.data?.blob_tx_count ?
80+
config.features.dataAvailability.isEnabled && blockQuery.data?.blob_transaction_count ?
8181
{
8282
id: 'blob_txs',
8383
title: 'Blob txns',

0 commit comments

Comments
 (0)