@@ -272,7 +272,7 @@ describe("Staking", async () => {
272
272
await core . connect ( juror ) . setStake ( 1 , PNK ( 1000 ) ) ;
273
273
await createDisputeAndReachGeneratingPhaseFromStaking ( ) ;
274
274
expect ( await core . connect ( juror ) . setStake ( 1 , PNK ( 2000 ) ) )
275
- . to . emit ( sortition , "StakeDelayedAlreadyTransferred " )
275
+ . to . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
276
276
. withArgs ( juror . address , 1 , PNK ( 2000 ) )
277
277
. to . not . emit ( sortition , "StakeSet" ) ;
278
278
expect ( await sortition . totalStaked ( ) ) . to . be . equal ( PNK ( 1000 ) ) ;
@@ -334,7 +334,7 @@ describe("Staking", async () => {
334
334
it ( "Should be able to stake exactly maxTotalStaked" , async ( ) => {
335
335
await pnk . connect ( juror ) . approve ( core . target , PNK ( 1000 ) ) ;
336
336
await expect ( await core . connect ( juror ) . setStake ( 1 , PNK ( 1000 ) ) )
337
- . to . emit ( sortition , "StakeDelayedAlreadyTransferred " )
337
+ . to . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
338
338
. withArgs ( juror . address , 1 , PNK ( 1000 ) ) ;
339
339
expect ( await sortition . totalStaked ( ) ) . to . be . equal ( PNK ( 2000 ) ) ; // Not updated until the delayed stake is executed
340
340
await drawAndReachStakingPhaseFromGenerating ( ) ;
@@ -430,7 +430,7 @@ describe("Staking", async () => {
430
430
await pnk . approve ( core . target , PNK ( 1000 ) ) ;
431
431
expect ( await sortition . latestDelayedStakeIndex ( deployer , 2 ) ) . to . be . equal ( 0 ) ;
432
432
await expect ( core . setStake ( 2 , PNK ( 3000 ) ) )
433
- . to . emit ( sortition , "StakeDelayedAlreadyTransferred " )
433
+ . to . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
434
434
. withArgs ( deployer , 2 , PNK ( 3000 ) ) ;
435
435
expect ( await sortition . getJurorBalance ( deployer , 2 ) ) . to . be . deep . equal ( [ PNK ( 5000 ) , 0 , PNK ( 2000 ) , 2 ] ) ; // stake does not change
436
436
} ) ;
@@ -458,7 +458,7 @@ describe("Staking", async () => {
458
458
. to . emit ( sortition , "StakeSet" )
459
459
. withArgs ( deployer , 2 , PNK ( 3000 ) , PNK ( 5000 ) )
460
460
. to . not . emit ( sortition , "StakeDelayedNotTransferred" )
461
- . to . not . emit ( sortition , "StakeDelayedAlreadyTransferred " )
461
+ . to . not . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
462
462
. to . not . emit ( sortition , "StakeDelayedAlreadyTransferredWithdrawn" ) ;
463
463
expect ( await sortition . getJurorBalance ( deployer , 2 ) ) . to . be . deep . equal ( [
464
464
PNK ( 5000 ) ,
@@ -653,7 +653,7 @@ describe("Staking", async () => {
653
653
await pnk . approve ( core . target , PNK ( 1000 ) ) ;
654
654
expect ( await sortition . latestDelayedStakeIndex ( deployer , 2 ) ) . to . be . equal ( 0 ) ;
655
655
await expect ( core . setStake ( 2 , PNK ( 3000 ) ) )
656
- . to . emit ( sortition , "StakeDelayedAlreadyTransferred " )
656
+ . to . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
657
657
. withArgs ( deployer , 2 , PNK ( 3000 ) ) ;
658
658
expect ( await sortition . getJurorBalance ( deployer , 2 ) ) . to . be . deep . equal ( [ PNK ( 5000 ) , 0 , PNK ( 2000 ) , 2 ] ) ; // stake does not change
659
659
} ) ;
@@ -706,7 +706,7 @@ describe("Staking", async () => {
706
706
. to . emit ( await sortition , "StakeSet" )
707
707
. withArgs ( deployer , 2 , PNK ( 2000 ) , PNK ( 4000 ) )
708
708
. to . not . emit ( sortition , "StakeDelayedNotTransferred" )
709
- . to . not . emit ( sortition , "StakeDelayedAlreadyTransferred " )
709
+ . to . not . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
710
710
. to . not . emit ( sortition , "StakeDelayedAlreadyTransferredWithdrawn" ) ;
711
711
expect ( await sortition . getJurorBalance ( deployer , 2 ) ) . to . be . deep . equal ( [
712
712
PNK ( 4000 ) ,
0 commit comments