Skip to content

Commit

Permalink
Merge branch 'prover_tests' of github.com:taikochain/taiko-mono into …
Browse files Browse the repository at this point in the history
…prover_tests
  • Loading branch information
cyberhorsey committed Jan 26, 2023
2 parents cf12914 + 5942f88 commit 4422317
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
working-directory: ./packages/protocol
run: pnpm test:integration

- name: protocol - Tokenomics Tests
working-directory: ./packages/protocol
run: pnpm test:tokenomics
# - name: protocol - Tokenomics Tests
# working-directory: ./packages/protocol
# run: pnpm test:tokenomics

- name: protocol - Test Coverage
working-directory: ./packages/protocol
Expand Down
6 changes: 3 additions & 3 deletions packages/protocol/contracts/L2/TaikoL2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ contract TaikoL2 is AddressResolver, ReentrancyGuard, IHeaderSync {
mapping(uint256 => bytes32) private l2Hashes;
mapping(uint256 => bytes32) private l1Hashes;
bytes32 public publicInputHash;
bytes32 public latestSyncedHeader;
uint256 public latestSyncedL1Height;

uint256[46] private __gap;

Expand Down Expand Up @@ -79,8 +79,8 @@ contract TaikoL2 is AddressResolver, ReentrancyGuard, IHeaderSync {
_checkPublicInputs();
}

latestSyncedL1Height = l1Height;
l1Hashes[l1Height] = l1Hash;
latestSyncedHeader = l1Hash;
emit HeaderSynced(block.number, l1Height, l1Hash);
}

Expand Down Expand Up @@ -140,7 +140,7 @@ contract TaikoL2 is AddressResolver, ReentrancyGuard, IHeaderSync {
}

function getLatestSyncedHeader() public view override returns (bytes32) {
return latestSyncedHeader;
return l1Hashes[latestSyncedL1Height];
}

function getBlockHash(uint256 number) public view returns (bytes32) {
Expand Down

0 comments on commit 4422317

Please sign in to comment.