Skip to content

Commit

Permalink
Merge branch 'develop' into po/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dajuguan authored Sep 8, 2024
2 parents ddac53a + be6b55b commit 8b4f2ca
Show file tree
Hide file tree
Showing 3 changed files with 288 additions and 272 deletions.
13 changes: 7 additions & 6 deletions packages/contracts-bedrock/src/dispute/FaultDisputeGameN.sol
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,7 @@ contract FaultDisputeGame is IFaultDisputeGame, Clone, ISemver {
Claim _claim,
uint64 _attackBranch
)
public
payable
virtual
internal
{
// For N = 4 (bisec),
// 1. _attackBranch == 0 (attack)
Expand Down Expand Up @@ -482,7 +480,9 @@ contract FaultDisputeGame is IFaultDisputeGame, Clone, ISemver {
}

/// @inheritdoc IFaultDisputeGame
function addLocalData(uint256 _ident, uint256 _execLeafIdx, uint256 _partOffset) external { }
function addLocalData(uint256 _ident, uint256 _execLeafIdx, uint256 _partOffset) external {
revert NotSupported();
}

function addLocalData(
uint256 _ident,
Expand Down Expand Up @@ -1196,8 +1196,9 @@ contract FaultDisputeGame is IFaultDisputeGame, Clone, ISemver {
}
}

function attackV2(Claim _disputed, uint256 _parentIndex, Claim _claim, uint64 _attackBranch) public payable {
moveV2(_disputed, _parentIndex, _claim, _attackBranch);
function attackV2(Claim _disputed, uint256 _parentIndex, uint64 _attackBranch, uint256 _daType, bytes memory _claims) public payable {
Claim claim = Claim.wrap(LibDA.getClaimsHash(_daType, MAX_ATTACK_BRANCH, _claims));
moveV2(_disputed, _parentIndex, claim, _attackBranch);
}

function step(
Expand Down
Loading

0 comments on commit 8b4f2ca

Please sign in to comment.