Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit 98d7965

Browse files
committed
test(api): mock maxFeePerGas
1 parent c21708c commit 98d7965

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/src/feat/transactions/transactions.service.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ describe(TransactionsService.name, () => {
6767
maxPriorityFeePerGas: new Decimal(0),
6868
gasPerPubdataLimit: 0n,
6969
}),
70+
maxFeePerGas: async () => new Decimal('.00000001'),
7071
getCode: async () => '0x00', // Non-zero - activated
7172
} satisfies DeepPartial<Network> as unknown as Network);
7273

app/src/components/transaction/TransactionDetails.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function TransactionDetails(props: TransactionDetailsProps) {
4141
overline="Gas usage"
4242
headline={
4343
<>
44-
<FormattedNumber value={t.result!.gasUsed} />
44+
<FormattedNumber value={t.result.gasUsed} />
4545
{' / '}
4646
<FormattedNumber value={t.gasLimit} />
4747
</>

0 commit comments

Comments
 (0)