Skip to content

Commit bd80059

Browse files
committed
update ssz field to receiptstrie
1 parent 17f643c commit bd80059

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/block/src/header/header.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ export class BlockHeader {
644644
coinbase: this.coinbase.bytes,
645645
stateRoot: this.stateRoot,
646646
transactionsTrie: this.transactionsTrie,
647-
receiptTrie: this.receiptTrie,
647+
receiptsTrie: this.receiptTrie,
648648
number: this.number,
649649
gasLimits: {
650650
regular: this.gasLimit,
@@ -669,7 +669,8 @@ export class BlockHeader {
669669

670670
calcHash(): Uint8Array {
671671
if (this.common.isActivatedEIP(6493)) {
672-
return ssz.BlockHeader.hashTreeRoot(this.sszRaw())
672+
const hash = ssz.BlockHeader.hashTreeRoot(this.sszRaw())
673+
return hash;
673674
} else {
674675
return this.keccakFunction(RLP.encode(this.raw()))
675676
}

packages/util/src/ssz.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ export const BlockHeader = new StableContainerType(
370370
coinbase: new OptionalType(Bytes20),
371371
stateRoot: new OptionalType(Bytes32),
372372
transactionsTrie: new OptionalType(Bytes32),
373-
receiptTrie: new OptionalType(Bytes32),
373+
receiptsTrie: new OptionalType(Bytes32),
374374
number: new OptionalType(Uint64),
375375
gasLimits: new OptionalType(FeesPerGas),
376376
gasUsed: new OptionalType(FeesPerGas),

0 commit comments

Comments
 (0)