@@ -28,6 +28,7 @@ contract KlerosCoreTest is Test {
28
28
BlockHashRNG rng;
29
29
PNK pinakion;
30
30
TestERC20 feeToken;
31
+ TestERC20 wNative;
31
32
ArbitrableExample arbitrable;
32
33
DisputeTemplateRegistry registry;
33
34
address governor;
@@ -65,6 +66,7 @@ contract KlerosCoreTest is Test {
65
66
rng = new BlockHashRNG ();
66
67
pinakion = new PNK ();
67
68
feeToken = new TestERC20 ("Test " , "TST " );
69
+ wNative = new TestERC20 ("wrapped ETH " , "wETH " );
68
70
69
71
governor = msg .sender ;
70
72
guardian = vm.addr (1 );
@@ -96,7 +98,12 @@ contract KlerosCoreTest is Test {
96
98
97
99
UUPSProxy proxyCore = new UUPSProxy (address (coreLogic), "" );
98
100
99
- bytes memory initDataDk = abi.encodeWithSignature ("initialize(address,address) " , governor, address (proxyCore));
101
+ bytes memory initDataDk = abi.encodeWithSignature (
102
+ "initialize(address,address,address) " ,
103
+ governor,
104
+ address (proxyCore),
105
+ address (wNative)
106
+ );
100
107
101
108
UUPSProxy proxyDk = new UUPSProxy (address (dkLogic), initDataDk);
102
109
disputeKit = DisputeKitClassic (address (proxyDk));
@@ -125,7 +132,8 @@ contract KlerosCoreTest is Test {
125
132
[minStake, alpha, feeForJuror, jurorsForCourtJump],
126
133
timesPerPeriod,
127
134
sortitionExtraData,
128
- sortitionModule
135
+ sortitionModule,
136
+ address (wNative)
129
137
);
130
138
vm.prank (staker1);
131
139
pinakion.approve (address (core), 1 ether);
@@ -277,7 +285,12 @@ contract KlerosCoreTest is Test {
277
285
278
286
UUPSProxy proxyCore = new UUPSProxy (address (coreLogic), "" );
279
287
280
- bytes memory initDataDk = abi.encodeWithSignature ("initialize(address,address) " , governor, address (proxyCore));
288
+ bytes memory initDataDk = abi.encodeWithSignature (
289
+ "initialize(address,address,address) " ,
290
+ governor,
291
+ address (proxyCore),
292
+ address (wNative)
293
+ );
281
294
282
295
UUPSProxy proxyDk = new UUPSProxy (address (dkLogic), initDataDk);
283
296
disputeKit = DisputeKitClassic (address (proxyDk));
@@ -325,7 +338,8 @@ contract KlerosCoreTest is Test {
325
338
[minStake, alpha, feeForJuror, jurorsForCourtJump],
326
339
timesPerPeriod,
327
340
sortitionExtraData,
328
- sortitionModule
341
+ sortitionModule,
342
+ address (wNative)
329
343
);
330
344
}
331
345
@@ -2075,7 +2089,12 @@ contract KlerosCoreTest is Test {
2075
2089
uint256 disputeID = 0 ;
2076
2090
DisputeKitClassic dkLogic = new DisputeKitClassic ();
2077
2091
// Create a new DK and court to check the switch
2078
- bytes memory initDataDk = abi.encodeWithSignature ("initialize(address,address) " , governor, address (core));
2092
+ bytes memory initDataDk = abi.encodeWithSignature (
2093
+ "initialize(address,address,address) " ,
2094
+ governor,
2095
+ address (core),
2096
+ address (wNative)
2097
+ );
2079
2098
2080
2099
UUPSProxy proxyDk = new UUPSProxy (address (dkLogic), initDataDk);
2081
2100
DisputeKitClassic newDisputeKit = DisputeKitClassic (address (proxyDk));
@@ -2856,7 +2875,12 @@ contract KlerosCoreTest is Test {
2856
2875
function test_castVote_differentDK () public {
2857
2876
DisputeKitClassic dkLogic = new DisputeKitClassic ();
2858
2877
// Create a new DK to check castVote.
2859
- bytes memory initDataDk = abi.encodeWithSignature ("initialize(address,address) " , governor, address (core));
2878
+ bytes memory initDataDk = abi.encodeWithSignature (
2879
+ "initialize(address,address,address) " ,
2880
+ governor,
2881
+ address (core),
2882
+ address (wNative)
2883
+ );
2860
2884
2861
2885
UUPSProxy proxyDk = new UUPSProxy (address (dkLogic), initDataDk);
2862
2886
DisputeKitClassic newDisputeKit = DisputeKitClassic (address (proxyDk));
0 commit comments