1
1
const EthVault = artifacts . require ( 'EthVault' ) ;
2
2
const PaymentExitGame = artifacts . require ( 'PaymentExitGame' ) ;
3
3
const PlasmaFramework = artifacts . require ( 'PlasmaFramework' ) ;
4
+ const PaymentStartStandardExit = artifacts . require ( 'PaymentStartStandardExit' ) ;
5
+ const PaymentStartInFlightExit = artifacts . require ( 'PaymentStartInFlightExit' ) ;
4
6
5
7
const { constants, expectEvent } = require ( 'openzeppelin-test-helpers' ) ;
6
8
@@ -227,12 +229,16 @@ contract('PlasmaFramework - Fee Claim', ([_, _maintainer, authority, richFather,
227
229
} ;
228
230
229
231
const bondSize = await this . paymentExitGame . startStandardExitBondSize ( ) ;
230
- const tx = await this . paymentExitGame . startStandardExit ( args , {
232
+ const { receipt } = await this . paymentExitGame . startStandardExit ( args , {
231
233
from : operatorFeeAddress ,
232
234
value : bondSize . add ( this . processExitBountySize ) ,
233
235
gasPrice : this . dummyGasPrice ,
234
236
} ) ;
235
- await expectEvent . inLogs ( tx . logs , 'ExitStarted' , { owner : operatorFeeAddress } ) ;
237
+ await expectEvent . inTransaction (
238
+ receipt . transactionHash ,
239
+ PaymentStartStandardExit ,
240
+ 'ExitStarted' ,
241
+ ) ;
236
242
} ) ;
237
243
238
244
it ( 'should be able to in-flight exit the fee via Payment transaction' , async ( ) => {
@@ -247,11 +253,15 @@ contract('PlasmaFramework - Fee Claim', ([_, _maintainer, authority, richFather,
247
253
} ;
248
254
249
255
const bondSize = await this . paymentExitGame . startIFEBondSize ( ) ;
250
- const tx = await this . paymentExitGame . startInFlightExit ( args , {
256
+ const { receipt } = await this . paymentExitGame . startInFlightExit ( args , {
251
257
from : alice ,
252
258
value : bondSize ,
253
259
} ) ;
254
- await expectEvent . inLogs ( tx . logs , 'InFlightExitStarted' ) ;
260
+ await expectEvent . inTransaction (
261
+ receipt . transactionHash ,
262
+ PaymentStartInFlightExit ,
263
+ 'InFlightExitStarted' ,
264
+ ) ;
255
265
} ) ;
256
266
} ) ;
257
267
} ) ;
0 commit comments