We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01699bf + 1924335 commit eb96e7fCopy full SHA for eb96e7f
contracts/Adjudicator.sol
@@ -466,8 +466,10 @@ contract Adjudicator {
466
function forceConcludeSingle(Channel.State memory state) internal {
467
Dispute memory dispute = requireGetDispute(state.channelID);
468
require(dispute.stateHash == hashState(state), "invalid channel state");
469
- dispute.phase = uint8(DisputePhase.CONCLUDED);
470
- setDispute(state.channelID, dispute);
+ if (dispute.phase != uint8(DisputePhase.CONCLUDED)) {
+ dispute.phase = uint8(DisputePhase.CONCLUDED);
471
+ setDispute(state.channelID, dispute);
472
+ }
473
}
474
475
/**
0 commit comments