Skip to content

Commit

Permalink
Rename executionStateRoots to executionBlockRoots which is what it is (
Browse files Browse the repository at this point in the history
…#47)

* rename executionStateRoots to executionBlockRoots which is what it is

* also rename in contract tests
  • Loading branch information
willemolding authored Dec 13, 2023
1 parent 9cc6298 commit 915c7d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contract-tests/tests/spectre.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async fn test_contract_initialization_and_first_step(
step_input.finalized_header_root
);
assert_eq!(
contract.execution_state_roots(head).call().await?,
contract.execution_payload_roots(head).call().await?,
step_input.execution_payload_root
);

Expand Down
4 changes: 2 additions & 2 deletions contracts/src/Spectre.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ contract Spectre {
mapping(uint256 => bytes32) public blockHeaderRoots;

/// Maps from a slot to the current finalized ethereum1 execution state root.
mapping(uint256 => bytes32) public executionStateRoots;
mapping(uint256 => bytes32) public executionPayloadRoots;

/// The highest slot that has been verified
uint256 public head = 0;
Expand Down Expand Up @@ -58,7 +58,7 @@ contract Spectre {
}

// update the contract state
executionStateRoots[input.finalizedSlot] = input.executionPayloadRoot;
executionPayloadRoots[input.finalizedSlot] = input.executionPayloadRoot;
blockHeaderRoots[input.finalizedSlot] = input.finalizedHeaderRoot;
head = input.finalizedSlot;
}
Expand Down

0 comments on commit 915c7d2

Please sign in to comment.