@@ -272,7 +272,7 @@ describe("Staking", async () => {
272272 await core . connect ( juror ) . setStake ( 1 , PNK ( 1000 ) ) ;
273273 await createDisputeAndReachGeneratingPhaseFromStaking ( ) ;
274274 expect ( await core . connect ( juror ) . setStake ( 1 , PNK ( 2000 ) ) )
275- . to . emit ( sortition , "StakeDelayedAlreadyTransferred " )
275+ . to . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
276276 . withArgs ( juror . address , 1 , PNK ( 2000 ) )
277277 . to . not . emit ( sortition , "StakeSet" ) ;
278278 expect ( await sortition . totalStaked ( ) ) . to . be . equal ( PNK ( 1000 ) ) ;
@@ -334,7 +334,7 @@ describe("Staking", async () => {
334334 it ( "Should be able to stake exactly maxTotalStaked" , async ( ) => {
335335 await pnk . connect ( juror ) . approve ( core . target , PNK ( 1000 ) ) ;
336336 await expect ( await core . connect ( juror ) . setStake ( 1 , PNK ( 1000 ) ) )
337- . to . emit ( sortition , "StakeDelayedAlreadyTransferred " )
337+ . to . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
338338 . withArgs ( juror . address , 1 , PNK ( 1000 ) ) ;
339339 expect ( await sortition . totalStaked ( ) ) . to . be . equal ( PNK ( 2000 ) ) ; // Not updated until the delayed stake is executed
340340 await drawAndReachStakingPhaseFromGenerating ( ) ;
@@ -430,7 +430,7 @@ describe("Staking", async () => {
430430 await pnk . approve ( core . target , PNK ( 1000 ) ) ;
431431 expect ( await sortition . latestDelayedStakeIndex ( deployer , 2 ) ) . to . be . equal ( 0 ) ;
432432 await expect ( core . setStake ( 2 , PNK ( 3000 ) ) )
433- . to . emit ( sortition , "StakeDelayedAlreadyTransferred " )
433+ . to . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
434434 . withArgs ( deployer , 2 , PNK ( 3000 ) ) ;
435435 expect ( await sortition . getJurorBalance ( deployer , 2 ) ) . to . be . deep . equal ( [ PNK ( 5000 ) , 0 , PNK ( 2000 ) , 2 ] ) ; // stake does not change
436436 } ) ;
@@ -458,7 +458,7 @@ describe("Staking", async () => {
458458 . to . emit ( sortition , "StakeSet" )
459459 . withArgs ( deployer , 2 , PNK ( 3000 ) , PNK ( 5000 ) )
460460 . to . not . emit ( sortition , "StakeDelayedNotTransferred" )
461- . to . not . emit ( sortition , "StakeDelayedAlreadyTransferred " )
461+ . to . not . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
462462 . to . not . emit ( sortition , "StakeDelayedAlreadyTransferredWithdrawn" ) ;
463463 expect ( await sortition . getJurorBalance ( deployer , 2 ) ) . to . be . deep . equal ( [
464464 PNK ( 5000 ) ,
@@ -653,7 +653,7 @@ describe("Staking", async () => {
653653 await pnk . approve ( core . target , PNK ( 1000 ) ) ;
654654 expect ( await sortition . latestDelayedStakeIndex ( deployer , 2 ) ) . to . be . equal ( 0 ) ;
655655 await expect ( core . setStake ( 2 , PNK ( 3000 ) ) )
656- . to . emit ( sortition , "StakeDelayedAlreadyTransferred " )
656+ . to . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
657657 . withArgs ( deployer , 2 , PNK ( 3000 ) ) ;
658658 expect ( await sortition . getJurorBalance ( deployer , 2 ) ) . to . be . deep . equal ( [ PNK ( 5000 ) , 0 , PNK ( 2000 ) , 2 ] ) ; // stake does not change
659659 } ) ;
@@ -706,7 +706,7 @@ describe("Staking", async () => {
706706 . to . emit ( await sortition , "StakeSet" )
707707 . withArgs ( deployer , 2 , PNK ( 2000 ) , PNK ( 4000 ) )
708708 . to . not . emit ( sortition , "StakeDelayedNotTransferred" )
709- . to . not . emit ( sortition , "StakeDelayedAlreadyTransferred " )
709+ . to . not . emit ( sortition , "StakeDelayedAlreadyTransferredDeposited " )
710710 . to . not . emit ( sortition , "StakeDelayedAlreadyTransferredWithdrawn" ) ;
711711 expect ( await sortition . getJurorBalance ( deployer , 2 ) ) . to . be . deep . equal ( [
712712 PNK ( 4000 ) ,
0 commit comments