Skip to content

Commit

Permalink
fix get_updated_l1_block
Browse files Browse the repository at this point in the history
  • Loading branch information
ChainDev931105 committed Jul 23, 2024
1 parent 1ca30a6 commit 6825158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/protocol/testnet/LagrangeCommitteeTestnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract LagrangeCommitteeTestnet is LagrangeCommittee {

function _getUpdatedL1Block(uint32 _chainID, uint256 _epochNumber) internal view returns (uint256) {
uint256 _stored = committees[_chainID][_epochNumber].updatedBlock;
return (_stored >> 112) != 0 ? (_stored >> 112) : uint256(int256(_stored) + committeeParams[_chainID].l1Bias);
return (_stored >> 112) != 0 ? (_stored >> 112) : uint256(int256(_stored) - committeeParams[_chainID].l1Bias);
}

function _setUpdatedBlock(uint32 _chainID, uint256 _epochNumber, uint256 _l1BlockNumber) internal override {
Expand Down

0 comments on commit 6825158

Please sign in to comment.