We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 497f23d commit 5624625Copy full SHA for 5624625
yarn-project/stdlib/src/block/l2_block.ts
@@ -15,6 +15,7 @@ import { z } from 'zod';
15
import type { PrivateLog } from '../logs/private_log.js';
16
import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js';
17
import { BlockHeader } from '../tx/block_header.js';
18
+import type { BlockHash } from './block_hash.js';
19
import { Body } from './body.js';
20
import type { L2BlockInfo } from './l2_block_info.js';
21
@@ -89,7 +90,7 @@ export class L2Block {
89
90
* Returns the block's hash (hash of block header).
91
* @returns The block's hash.
92
*/
- public hash(): Promise<Fr> {
93
+ public hash(): Promise<BlockHash> {
94
return this.header.hash();
95
}
96
0 commit comments