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 = { ...@@ -215,7 +215,7 @@ export const withBlobTxs: Block = {
blob_gas_used: '393216', blob_gas_used: '393216',
burnt_blob_fees: '8461393325064192', burnt_blob_fees: '8461393325064192',
excess_blob_gas: '79429632', excess_blob_gas: '79429632',
blob_tx_count: 1, blob_transaction_count: 1,
}; };
export const withWithdrawals: Block = { export const withWithdrawals: Block = {
......
...@@ -54,7 +54,7 @@ export interface Block { ...@@ -54,7 +54,7 @@ export interface Block {
blob_gas_used?: string; blob_gas_used?: string;
burnt_blob_fees?: string; burnt_blob_fees?: string;
excess_blob_gas?: string; excess_blob_gas?: string;
blob_tx_count?: number; blob_transaction_count?: number;
// ZKSYNC FIELDS // ZKSYNC FIELDS
zksync?: Omit<ZkSyncBatchesItem, 'number' | 'transaction_count' | 'timestamp'> & { zksync?: Omit<ZkSyncBatchesItem, 'number' | 'transaction_count' | 'timestamp'> & {
batch_number: number | null; batch_number: number | null;
......
...@@ -126,11 +126,11 @@ const BlockDetails = ({ query }: Props) => { ...@@ -126,11 +126,11 @@ const BlockDetails = ({ query }: Props) => {
</LinkInternal> </LinkInternal>
); );
const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_tx_count) ? ( const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_transaction_count) ? (
<> <>
<span> including </span> <span> including </span>
<LinkInternal href={ route({ pathname: '/block/[height_or_hash]', query: { height_or_hash: heightOrHash, tab: 'blob_txs' } }) }> <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> </LinkInternal>
</> </>
) : null; ) : null;
......
...@@ -16,7 +16,7 @@ export default function useBlockBlobTxsQuery({ heightOrHash, blockQuery, tab }: ...@@ -16,7 +16,7 @@ export default function useBlockBlobTxsQuery({ heightOrHash, blockQuery, tab }:
pathParams: { height_or_hash: heightOrHash }, pathParams: { height_or_hash: heightOrHash },
filters: { type: 'blob_transaction' }, filters: { type: 'blob_transaction' },
options: { 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 }), placeholderData: generateListStub<'block_txs'>(TX, 3, { next_page_params: null }),
refetchOnMount: false, refetchOnMount: false,
}, },
......
...@@ -77,7 +77,7 @@ const BlockPageContent = () => { ...@@ -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', id: 'blob_txs',
title: 'Blob txns', 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