Skip to content

Commit 47a1623

Browse files
committed
refactor: add arbitrator data index getter
1 parent 9f00f98 commit 47a1623

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
## 0.1.0 (2021-12-08)
1+
## 0.1.0 (2021-12-13)
22

3+
- test: added a test for IncrementalNG ([65a996b](https://github.com/kleros/kleros-v2/commit/65a996b))
4+
- test(EvidenceModule): add test file ([9f00f98](https://github.com/kleros/kleros-v2/commit/9f00f98))
35
- chore: added GitHub code scanning ([4a70475](https://github.com/kleros/kleros-v2/commit/4a70475))
46
- chore: added the hardhat config for layer 2 networks, added hardhat-deploy and mocha ([a12ea0e](https://github.com/kleros/kleros-v2/commit/a12ea0e))
57
- chore: gitignore typechain ([b50f777](https://github.com/kleros/kleros-v2/commit/b50f777))
@@ -18,7 +20,6 @@
1820
- refactor(sdk): rename ([3241d10](https://github.com/kleros/kleros-v2/commit/3241d10))
1921
- feat: modern toolchain setup and simple RNG smart contracts ([17f6a76](https://github.com/kleros/kleros-v2/commit/17f6a76))
2022
- feat(Arbitration): standard update ([ed930de](https://github.com/kleros/kleros-v2/commit/ed930de))
21-
- test: added a test for IncrementalNG ([65a996b](https://github.com/kleros/kleros-v2/commit/65a996b))
2223
- docs: initial commit ([23356e7](https://github.com/kleros/kleros-v2/commit/23356e7))
2324
- docs: license file added ([cb62d2c](https://github.com/kleros/kleros-v2/commit/cb62d2c))
2425
- docs: readme and spdx headers ([8a5b397](https://github.com/kleros/kleros-v2/commit/8a5b397))

contracts/src/evidence/EvidenceModule.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,4 +429,11 @@ contract EvidenceModule is IArbitrable, IEvidence {
429429
Moderation storage moderation = evidenceData.moderations[_moderationID];
430430
return (moderation.paidFees, moderation.currentWinner, moderation.feeRewards);
431431
}
432+
433+
/** @dev Gets the last arbitrator data index, which is used for current new submissions.
434+
* @return The last arbitrator data index.
435+
*/
436+
function getCurrentArbitratorIndex() external view returns (uint256) {
437+
return arbitratorDataList.length - 1;
438+
}
432439
}

0 commit comments

Comments
 (0)