Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mocks/blocks/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const withBlobTxs: Block = {
blob_gas_used: '393216',
burnt_blob_fees: '8461393325064192',
excess_blob_gas: '79429632',
blob_transaction_count: 1,
blob_transactions_count: 1,
};

export const withWithdrawals: Block = {
Expand Down
2 changes: 1 addition & 1 deletion types/api/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface Block {
blob_gas_used?: string;
burnt_blob_fees?: string;
excess_blob_gas?: string;
blob_transaction_count?: number;
blob_transactions_count?: number;
// ZKSYNC FIELDS
zksync?: Omit<ZkSyncBatchesItem, 'number' | 'transactions_count' | 'timestamp'> & {
batch_number: number | null;
Expand Down
4 changes: 2 additions & 2 deletions ui/block/BlockDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ const BlockDetails = ({ query }: Props) => {
</Link>
);

const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_transaction_count) ? (
const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_transactions_count) ? (
<>
<span> including </span>
<Link href={ route({ pathname: '/block/[height_or_hash]', query: { height_or_hash: heightOrHash, tab: 'blob_txs' } }, multichainContext) }>
{ data.blob_transaction_count } blob txn{ data.blob_transaction_count === 1 ? '' : 's' }
{ data.blob_transactions_count } blob txn{ data.blob_transactions_count === 1 ? '' : 's' }
</Link>
</>
) : null;
Expand Down
2 changes: 1 addition & 1 deletion ui/block/useBlockBlobTxsQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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_transaction_count),
enabled: Boolean(tab === 'blob_txs' && !blockQuery.isPlaceholderData && blockQuery.data?.blob_transactions_count),
placeholderData: generateListStub<'general:block_txs'>(TX, 3, { next_page_params: null }),
refetchOnMount: false,
},
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/Block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const BlockPageContent = () => {
</>
),
},
config.features.dataAvailability.isEnabled && blockQuery.data?.blob_transaction_count ?
config.features.dataAvailability.isEnabled && blockQuery.data?.blob_transactions_count ?
{
id: 'blob_txs',
title: 'Blob txns',
Expand Down
Loading