Skip to content

Commit

Permalink
chore: make comment and implementation of move consistent (ethereum…
Browse files Browse the repository at this point in the history
…-optimism#9128)

* make comment and implementation consistent

* adjust order: true then false

* another

* undo spec change
  • Loading branch information
zhiqiangxu authored Jan 26, 2024
1 parent c205c8f commit cedcac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts-bedrock/src/dispute/lib/LibPosition.sol
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ library LibPosition {
}

/// @notice Get the move position of `_position`, which is the left child of:
/// 1. `_position + 1` if `_isAttack` is true.
/// 1. `_position` if `_isAttack` is false.
/// 1. `_position` if `_isAttack` is true.
/// 2. `_position | 1` if `_isAttack` is false.
/// @param _position The position to get the relative attack/defense position of.
/// @param _isAttack Whether or not the move is an attack move.
/// @return move_ The move position relative to `position`.
Expand Down

0 comments on commit cedcac2

Please sign in to comment.