Skip to content

Commit

Permalink
Merge branch 'rollup-contracts-port-tests' into rollup-contracts-port…
Browse files Browse the repository at this point in the history
…-tests-cont
  • Loading branch information
yahgwai committed Feb 24, 2022
2 parents 8296585 + 2ba6d1a commit 1dd3061
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- "seqdata:/data"
- "l1keystore:/l1keystore"
- "deploydata:/deploydata"
command: -l1role sequencer -l1conn ws://geth:8546 -l1keystore /l1keystore -l1deployment /deploydata/deployment.json -httphost 0.0.0.0 -wshost 0.0.0.0
command: -datadir /data -dev -l1role sequencer -l1conn ws://geth:8546 -l1keystore /l1keystore -l1deployment /deploydata/deployment.json -httphost 0.0.0.0 -wshost 0.0.0.0
depends_on:
- geth
volumes:
Expand Down
4 changes: 2 additions & 2 deletions solgen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"license": "Apache-2.0",
"scripts": {
"build": "hardhat compile",
"solhint": "./node_modules/.bin/solhint -f table src/**/*.sol",
"prettier:solidity": "./node_modules/.bin/prettier --write src/**/*.sol"
"solhint": "solhint -f table src/**/*.sol",
"prettier:solidity": "prettier --write src/**/*.sol"
},
"dependencies": {
"@openzeppelin/contracts": "4.5.0",
Expand Down
12 changes: 6 additions & 6 deletions solgen/src/challenge/ChallengeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,10 @@ contract ChallengeManager is DelegateCallAware, IChallengeManager {
/// @dev This function causes the mode of the challenge to be set to NONE by deleting the challenge
function _nextWin(uint64 challengeIndex, ChallengeTerminationType reason) private {
ChallengeLib.Challenge storage challenge = challenges[challengeIndex];
address next = challenge.next.addr;
address current = challenge.current.addr;
delete challenges[challengeIndex];
resultReceiver.completeChallenge(
challengeIndex,
challenge.next.addr,
challenge.current.addr
);
resultReceiver.completeChallenge(challengeIndex, next, current);
emit ChallengeEnded(challengeIndex, reason);
}

Expand All @@ -331,8 +329,10 @@ contract ChallengeManager is DelegateCallAware, IChallengeManager {
ChallengeLib.Challenge storage challenge = challenges[challengeIndex];
challenge.challengeStateHash = bytes32(0);

// address next = challenge.next.addr;
// address current = challenge.current.addr;
// delete challenges[challengeIndex];
// resultReceiver.completeChallenge(challengeIndex, challenge.current.addr, challenge.next.addr);
// resultReceiver.completeChallenge(challengeIndex, current, next);
// emit ChallengeEnded(challengeIndex, reason);
}
}

0 comments on commit 1dd3061

Please sign in to comment.