Skip to content

Commit

Permalink
Use correct casing for receiptRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Feb 15, 2022
1 parent 40c2fc5 commit b0a1d8d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function processExecutionPayload(
parentHash: payload.parentHash,
feeRecipient: payload.feeRecipient,
stateRoot: payload.stateRoot,
receiptsRoot: payload.receiptsRoot,
receiptRoot: payload.receiptRoot,
logsBloom: payload.logsBloom,
random: payload.random,
blockNumber: payload.blockNumber,
Expand Down
4 changes: 2 additions & 2 deletions packages/lodestar/src/executionEngine/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export function serializeExecutionPayload(data: bellatrix.ExecutionPayload): Exe
parentHash: bytesToData(data.parentHash),
feeRecipient: bytesToData(data.feeRecipient),
stateRoot: bytesToData(data.stateRoot),
receiptsRoot: bytesToData(data.receiptsRoot),
receiptsRoot: bytesToData(data.receiptRoot),
logsBloom: bytesToData(data.logsBloom),
random: bytesToData(data.random),
blockNumber: numToQuantity(data.blockNumber),
Expand All @@ -342,7 +342,7 @@ export function parseExecutionPayload(data: ExecutionPayloadRpc): bellatrix.Exec
parentHash: dataToBytes(data.parentHash, 32),
feeRecipient: dataToBytes(data.feeRecipient, 20),
stateRoot: dataToBytes(data.stateRoot, 32),
receiptsRoot: dataToBytes(data.receiptsRoot, 32),
receiptRoot: dataToBytes(data.receiptsRoot, 32),
logsBloom: dataToBytes(data.logsBloom, BYTES_PER_LOGS_BLOOM),
random: dataToBytes(data.random, 32),
blockNumber: quantityToNum(data.blockNumber),
Expand Down
2 changes: 1 addition & 1 deletion packages/lodestar/src/executionEngine/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class ExecutionEngineMock implements IExecutionEngine {
parentHash: ZERO_HASH,
feeRecipient: Buffer.alloc(20, 0),
stateRoot: ZERO_HASH,
receiptsRoot: ZERO_HASH,
receiptRoot: ZERO_HASH,
logsBloom: Buffer.alloc(BYTES_PER_LOGS_BLOOM, 0),
random: ZERO_HASH,
blockNumber: 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/bellatrix/sszTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const executionPayloadFields = {
parentHash: Root,
feeRecipient: Bytes20,
stateRoot: Bytes32,
receiptsRoot: Bytes32,
receiptRoot: Bytes32,
logsBloom: new ByteVectorType(BYTES_PER_LOGS_BLOOM),
random: Bytes32,
blockNumber: UintNum64,
Expand Down

0 comments on commit b0a1d8d

Please sign in to comment.