File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -644,7 +644,7 @@ export class BlockHeader {
644
644
coinbase : this . coinbase . bytes ,
645
645
stateRoot : this . stateRoot ,
646
646
transactionsTrie : this . transactionsTrie ,
647
- receiptTrie : this . receiptTrie ,
647
+ receiptsTrie : this . receiptTrie ,
648
648
number : this . number ,
649
649
gasLimits : {
650
650
regular : this . gasLimit ,
@@ -669,7 +669,8 @@ export class BlockHeader {
669
669
670
670
calcHash ( ) : Uint8Array {
671
671
if ( this . common . isActivatedEIP ( 6493 ) ) {
672
- return ssz . BlockHeader . hashTreeRoot ( this . sszRaw ( ) )
672
+ const hash = ssz . BlockHeader . hashTreeRoot ( this . sszRaw ( ) )
673
+ return hash ;
673
674
} else {
674
675
return this . keccakFunction ( RLP . encode ( this . raw ( ) ) )
675
676
}
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ export const BlockHeader = new StableContainerType(
370
370
coinbase : new OptionalType ( Bytes20 ) ,
371
371
stateRoot : new OptionalType ( Bytes32 ) ,
372
372
transactionsTrie : new OptionalType ( Bytes32 ) ,
373
- receiptTrie : new OptionalType ( Bytes32 ) ,
373
+ receiptsTrie : new OptionalType ( Bytes32 ) ,
374
374
number : new OptionalType ( Uint64 ) ,
375
375
gasLimits : new OptionalType ( FeesPerGas ) ,
376
376
gasUsed : new OptionalType ( FeesPerGas ) ,
You can’t perform that action at this time.
0 commit comments