Skip to content

Commit

Permalink
Use child1 for the "no" fork and child2 for the "yes" fork to match w…
Browse files Browse the repository at this point in the history
…hat we did in L1GlobalChainInfoPublisher
  • Loading branch information
edmundedgar committed Mar 2, 2024
1 parent 149c4c4 commit 532759b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/L1ForkArbitrator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ contract L1ForkArbitrator is IArbitratorCore, IArbitratorErrors {
if (child1 == address(0) || child2 == address(0)) revert NotForkedYet();
IRealityETH(child1).assignWinnerAndSubmitAnswerByArbitrator(
arbitratingQuestionId,
bytes32(uint256(1)),
bytes32(uint256(0)),
payer,
lastHistoryHash,
lastAnswer,
lastAnswerer
);
IRealityETH(child2).assignWinnerAndSubmitAnswerByArbitrator(
arbitratingQuestionId,
bytes32(uint256(0)),
bytes32(uint256(1)),
payer,
lastHistoryHash,
lastAnswer,
Expand Down
4 changes: 2 additions & 2 deletions test/ForkableRealityETH.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1405,13 +1405,13 @@ contract ForkableRealityETHTest is Test {
ForkableRealityETH_ERC20(forkableRealityETH2a).resultFor(
forkOverQuestionId
),
bytes32(uint256(1))
bytes32(uint256(0))
);
assertEq(
ForkableRealityETH_ERC20(forkableRealityETH2b).resultFor(
forkOverQuestionId
),
bytes32(uint256(0))
bytes32(uint256(1))
);
}
}

0 comments on commit 532759b

Please sign in to comment.