Skip to content

Commit

Permalink
rename block type
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-casper committed Apr 18, 2024
1 parent 46c7c30 commit dd9e76c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export interface BlockBodyV1 {
hash: JsonBlockHash;
}

export interface Version1Block {
export interface BlockV1 {
hash: JsonBlockHash;
header: JsonHeader;
proofs: string[];
Expand Down Expand Up @@ -368,15 +368,15 @@ export interface BlockBodyV2 {
hash: string;
}

export interface Version2Block {
export interface BlockV2 {
hash: JsonBlockHash;
header: BlockHeaderV2;
body: BlockBodyV2;
}

export interface Block {
Version1: Version1Block | null;
Version2: Version2Block | null;
Version1: BlockV1 | null;
Version2: BlockV2 | null;
}

export function getStateRootHash(block: Block): string {
Expand Down

0 comments on commit dd9e76c

Please sign in to comment.