Skip to content

Commit 6f3763a

Browse files
authored
OP batches: show EigenDA tag (#3186)
* OP batches: show EigenDA tag Resolves #3183 * fix revoke test
1 parent f448b87 commit 6f3763a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

types/api/optimisticL2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type OptimisticL2OutputRootsResponse = {
3737
};
3838
};
3939

40-
export type OptimisticL2BatchDataContainer = 'in_blob4844' | 'in_celestia' | 'in_calldata';
40+
export type OptimisticL2BatchDataContainer = 'in_blob4844' | 'in_celestia' | 'in_calldata' | 'in_eigenda';
4141

4242
export type OptimisticL2TxnBatchesItem = {
4343
number: number;

ui/marketplace/essentialDapps/revoke/Revoke.pw.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22

33
import * as opSuperchainMock from 'mocks/multichain/opSuperchain';
4-
import type { TestFnArgs } from 'playwright/lib';
54
import { test, expect } from 'playwright/lib';
65

76
import Revoke from './Revoke';
@@ -10,7 +9,7 @@ const ESSENTIAL_DAPPS_CONFIG = JSON.stringify({
109
revoke: { chains: [ opSuperchainMock.chainDataA.id ] },
1110
});
1211

13-
test('base view +@dark-mode +@mobile', async({ render, mockEnvs, mockEssentialDappsChainsConfig, mockAssetResponse }: TestFnArgs) => {
12+
test('base view +@dark-mode +@mobile', async({ render, mockEnvs, mockEssentialDappsChainsConfig, mockAssetResponse }) => {
1413
await mockEnvs([
1514
[ 'NEXT_PUBLIC_MARKETPLACE_ENABLED', 'true' ],
1615
[ 'NEXT_PUBLIC_MARKETPLACE_ESSENTIAL_DAPPS_CONFIG', ESSENTIAL_DAPPS_CONFIG ],

ui/shared/batch/OptimisticL2TxnBatchDA.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ const OptimisticL2TxnBatchDA = ({ container, isLoading, ...rest }: Props) => {
2121
return 'Calldata';
2222
case 'in_celestia':
2323
return 'Celestia blob';
24+
case 'in_eigenda':
25+
return 'EigenDA';
2426
}
2527
})();
2628

29+
if (!text) {
30+
return null;
31+
}
32+
2733
return (
2834
<Badge colorPalette="yellow" loading={ isLoading } { ...rest }>
2935
{ text }

0 commit comments

Comments
 (0)