Skip to content

Commit 5624625

Browse files
committed
using BlockHash type in L2Block
1 parent 497f23d commit 5624625

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yarn-project/stdlib/src/block/l2_block.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { z } from 'zod';
1515
import type { PrivateLog } from '../logs/private_log.js';
1616
import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js';
1717
import { BlockHeader } from '../tx/block_header.js';
18+
import type { BlockHash } from './block_hash.js';
1819
import { Body } from './body.js';
1920
import type { L2BlockInfo } from './l2_block_info.js';
2021

@@ -89,7 +90,7 @@ export class L2Block {
8990
* Returns the block's hash (hash of block header).
9091
* @returns The block's hash.
9192
*/
92-
public hash(): Promise<Fr> {
93+
public hash(): Promise<BlockHash> {
9394
return this.header.hash();
9495
}
9596

0 commit comments

Comments
 (0)