Commit 1456f7b6 authored by tom's avatar tom Committed by tom goriunov

[skip ci] rename blob_tx_count to blob_transaction_count

parent fcfadbc0
......@@ -215,7 +215,7 @@ export const withBlobTxs: Block = {
blob_gas_used: '393216',
burnt_blob_fees: '8461393325064192',
excess_blob_gas: '79429632',
blob_tx_count: 1,
blob_transaction_count: 1,
};
export const withWithdrawals: Block = {
......
......@@ -54,7 +54,7 @@ export interface Block {
blob_gas_used?: string;
burnt_blob_fees?: string;
excess_blob_gas?: string;
blob_tx_count?: number;
blob_transaction_count?: number;
// ZKSYNC FIELDS
zksync?: Omit<ZkSyncBatchesItem, 'number' | 'transaction_count' | 'timestamp'> & {
batch_number: number | null;
......
......@@ -126,11 +126,11 @@ const BlockDetails = ({ query }: Props) => {
</LinkInternal>
);
const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_tx_count) ? (
const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_transaction_count) ? (
<>
<span> including </span>
<LinkInternal href={ route({ pathname: '/block/[height_or_hash]', query: { height_or_hash: heightOrHash, tab: 'blob_txs' } }) }>
{ data.blob_tx_count } blob txn{ data.blob_tx_count === 1 ? '' : 's' }
{ data.blob_transaction_count } blob txn{ data.blob_transaction_count === 1 ? '' : 's' }
</LinkInternal>
</>
) : null;
......
......@@ -16,7 +16,7 @@ export default function useBlockBlobTxsQuery({ heightOrHash, blockQuery, tab }:
pathParams: { height_or_hash: heightOrHash },
filters: { type: 'blob_transaction' },
options: {
enabled: Boolean(tab === 'blob_txs' && !blockQuery.isPlaceholderData && blockQuery.data?.blob_tx_count),
enabled: Boolean(tab === 'blob_txs' && !blockQuery.isPlaceholderData && blockQuery.data?.blob_transaction_count),
placeholderData: generateListStub<'block_txs'>(TX, 3, { next_page_params: null }),
refetchOnMount: false,
},
......
......@@ -77,7 +77,7 @@ const BlockPageContent = () => {
</>
),
},
config.features.dataAvailability.isEnabled && blockQuery.data?.blob_tx_count ?
config.features.dataAvailability.isEnabled && blockQuery.data?.blob_transaction_count ?
{
id: 'blob_txs',
title: 'Blob txns',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment