@@ -194,7 +194,7 @@ contract TribunalTest is Test {
194
194
Tribunal.Mandate memory mandate = Tribunal.Mandate ({
195
195
recipient: address (0xCAFE ),
196
196
expires: 1703116800 , // 2023-12-21 00:00:00 UTC
197
- token: address (0xDEAD ),
197
+ token: address (token ),
198
198
minimumAmount: 1 ether,
199
199
baselinePriorityFee: 100 wei,
200
200
scalingFactor: 1e18 ,
@@ -216,6 +216,9 @@ contract TribunalTest is Test {
216
216
allocatorSignature: new bytes (0 )
217
217
});
218
218
219
+ // Approve tokens for settlement
220
+ token.approve (address (tribunal), type (uint256 ).max);
221
+
219
222
tribunal.fill (claim, mandate, address (this ));
220
223
221
224
vm.expectRevert (abi.encodeWithSignature ("AlreadyClaimed() " ));
@@ -230,7 +233,7 @@ contract TribunalTest is Test {
230
233
Tribunal.Mandate memory mandate = Tribunal.Mandate ({
231
234
recipient: address (0xCAFE ),
232
235
expires: 1703116800 , // 2023-12-21 00:00:00 UTC
233
- token: address (0xDEAD ),
236
+ token: address (token ),
234
237
minimumAmount: 1 ether,
235
238
baselinePriorityFee: 100 wei,
236
239
scalingFactor: 1e18 ,
@@ -256,6 +259,9 @@ contract TribunalTest is Test {
256
259
tribunal.deriveClaimHash (claim.compact, tribunal.deriveMandateHash (mandate));
257
260
assertEq (tribunal.filled (claimHash), address (0 ));
258
261
262
+ // Approve tokens for settlement
263
+ token.approve (address (tribunal), type (uint256 ).max);
264
+
259
265
vm.expectEmit (true , true , false , true , address (tribunal));
260
266
emit Tribunal.Fill (sponsor, address (this ), claimHash, 1 ether, 1 ether, 0 );
261
267
0 commit comments