Skip to content

Commit

Permalink
Merge pull request #50 from ethstorage/bill/unittest_for_step
Browse files Browse the repository at this point in the history
fix the unit test of resolve
  • Loading branch information
JustXxx authored Aug 9, 2024
2 parents 6afc90f + cf1424b commit f87be16
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 162 deletions.
9 changes: 4 additions & 5 deletions packages/contracts-bedrock/src/dispute/FaultDisputeGameN.sol
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,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 @@ -1196,8 +1194,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 f87be16

Please sign in to comment.