Skip to content

Commit 1d37d89

Browse files
feat(DK): update reinitializer
1 parent e4d4bdb commit 1d37d89

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

contracts/src/arbitration/dispute-kits/DisputeKitClassic.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {DisputeKitClassicBase, KlerosCore} from "./DisputeKitClassicBase.sol";
1111
/// - an incentive system: equal split between coherent votes,
1212
/// - an appeal system: fund 2 choices only, vote on any choice.
1313
contract DisputeKitClassic is DisputeKitClassicBase {
14-
string public constant override version = "0.12.0";
14+
string public constant override version = "0.13.0";
1515

1616
// ************************************* //
1717
// * Constructor * //
@@ -36,8 +36,8 @@ contract DisputeKitClassic is DisputeKitClassicBase {
3636
__DisputeKitClassicBase_initialize(_owner, _core, _wNative, _jumpDisputeKitID);
3737
}
3838

39-
function reinitialize(address _wNative) external reinitializer(9) {
40-
wNative = _wNative;
39+
function reinitialize(uint256 _jumpDisputeKitID) external reinitializer(10) {
40+
jumpDisputeKitID = _jumpDisputeKitID;
4141
}
4242

4343
// ************************ //

contracts/src/arbitration/dispute-kits/DisputeKitGated.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface IBalanceHolderERC1155 {
2727
/// - an incentive system: equal split between coherent votes,
2828
/// - an appeal system: fund 2 choices only, vote on any choice.
2929
contract DisputeKitGated is DisputeKitClassicBase {
30-
string public constant override version = "0.12.0";
30+
string public constant override version = "0.13.0";
3131

3232
// ************************************* //
3333
// * Constructor * //
@@ -52,8 +52,8 @@ contract DisputeKitGated is DisputeKitClassicBase {
5252
__DisputeKitClassicBase_initialize(_owner, _core, _wNative, _jumpDisputeKitID);
5353
}
5454

55-
function reinitialize(address _wNative) external reinitializer(9) {
56-
wNative = _wNative;
55+
function reinitialize(uint256 _jumpDisputeKitID) external reinitializer(10) {
56+
jumpDisputeKitID = _jumpDisputeKitID;
5757
}
5858

5959
// ************************ //

contracts/src/arbitration/dispute-kits/DisputeKitGatedShutter.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface IBalanceHolderERC1155 {
2828
/// - an incentive system: equal split between coherent votes,
2929
/// - an appeal system: fund 2 choices only, vote on any choice.
3030
contract DisputeKitGatedShutter is DisputeKitClassicBase {
31-
string public constant override version = "0.12.0";
31+
string public constant override version = "0.13.0";
3232

3333
// ************************************* //
3434
// * Events * //
@@ -71,8 +71,8 @@ contract DisputeKitGatedShutter is DisputeKitClassicBase {
7171
__DisputeKitClassicBase_initialize(_owner, _core, _wNative, _jumpDisputeKitID);
7272
}
7373

74-
function reinitialize(address _wNative) external reinitializer(9) {
75-
wNative = _wNative;
74+
function reinitialize(uint256 _jumpDisputeKitID) external reinitializer(10) {
75+
jumpDisputeKitID = _jumpDisputeKitID;
7676
}
7777

7878
// ************************ //

contracts/src/arbitration/dispute-kits/DisputeKitShutter.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {DisputeKitClassicBase, KlerosCore} from "./DisputeKitClassicBase.sol";
1212
/// - an incentive system: equal split between coherent votes,
1313
/// - an appeal system: fund 2 choices only, vote on any choice.
1414
contract DisputeKitShutter is DisputeKitClassicBase {
15-
string public constant override version = "0.12.0";
15+
string public constant override version = "0.13.0";
1616

1717
// ************************************* //
1818
// * Events * //
@@ -55,8 +55,8 @@ contract DisputeKitShutter is DisputeKitClassicBase {
5555
__DisputeKitClassicBase_initialize(_owner, _core, _wNative, _jumpDisputeKitID);
5656
}
5757

58-
function reinitialize(address _wNative) external reinitializer(9) {
59-
wNative = _wNative;
58+
function reinitialize(uint256 _jumpDisputeKitID) external reinitializer(10) {
59+
jumpDisputeKitID = _jumpDisputeKitID;
6060
}
6161

6262
// ************************ //

contracts/src/arbitration/dispute-kits/DisputeKitSybilResistant.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface IProofOfHumanity {
1818
/// - an incentive system: equal split between coherent votes,
1919
/// - an appeal system: fund 2 choices only, vote on any choice.
2020
contract DisputeKitSybilResistant is DisputeKitClassicBase {
21-
string public constant override version = "0.12.0";
21+
string public constant override version = "0.13.0";
2222

2323
// ************************************* //
2424
// * Storage * //

0 commit comments

Comments
 (0)