Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Jan 13, 2023
1 parent 233b051 commit c646c15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions packages/protocol/contracts/L1/libs/LibProposing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,6 @@ library LibProposing {
emit BlockProposed(state.nextBlockId++, meta);
}

function getProposedBlock(
TaikoData.State storage state,
uint256 maxNumBlocks,
uint256 id
) internal view returns (TaikoData.ProposedBlock storage) {
require(id > state.latestVerifiedId && id < state.nextBlockId, "L1:id");
return state.getProposedBlock(maxNumBlocks, id);
}

function getBlockFee(
TaikoData.State storage state,
TaikoData.Config memory config
Expand Down Expand Up @@ -185,6 +176,15 @@ library LibProposing {
block.number >= commitHeight + commitConfirmations;
}

function getProposedBlock(
TaikoData.State storage state,
uint256 maxNumBlocks,
uint256 id
) internal view returns (TaikoData.ProposedBlock storage) {
require(id > state.latestVerifiedId && id < state.nextBlockId, "L1:id");
return state.getProposedBlock(maxNumBlocks, id);
}

function _saveProposedBlock(
TaikoData.State storage state,
uint256 maxNumBlocks,
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/contracts/bridge/libs/LibBridgeSend.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ library LibBridgeSend {
*
* @param message Specifies the `depositValue`, `callValue`,
* and `processingFee`. These must sum to `msg.value`. It also specifies the
* `destChainId` which must have a `bridge` address set on the AddressResolver
* and differ from the current chain ID.
* `destChainId` which must have a `bridge` address set on the
* AddressResolver and differ from the current chain ID.
*
* @return signal The message is hashed, stored, and emitted as a signal.
* This is picked up by an off-chain relayer which indicates a
Expand Down

0 comments on commit c646c15

Please sign in to comment.