@@ -18,28 +18,22 @@ describeSuite({
1818 let leaderContractAddress : `0x${string } `;
1919
2020 beforeAll ( async function ( ) {
21- console . log ( "beforeAll Proxy Leader Demo" ) ;
2221 leaderContractAddress = await setupPoolWithParticipants ( context ) ;
23- console . log ( "beforeAll Proxy Leader Demo 2" ) ;
2422
2523 const rawTx = context . writeContract ! ( {
2624 contractName : "ProxyLeaderDemo" ,
2725 contractAddress : leaderContractAddress ,
2826 functionName : "startVoting" ,
2927 rawTxOnly : true ,
3028 } ) ;
31- console . log ( "beforeAll Proxy Leader Demo 3" ) ;
3229 const { result } = await context . createBlock ( rawTx ) ;
33- console . log ( "beforeAll Proxy Leader Demo 4" ) ;
3430 expectEVMResult ( result ! . events , "Succeed" ) ;
35- console . log ( "beforeAll Proxy Leader Demo 5" ) ;
3631 } ) ;
3732
3833 it ( {
3934 id : "T01" ,
4035 title : "should not be able to vote if non-participant" ,
4136 test : async function ( ) {
42- console . log ( "beforeAll Proxy Leader Demo T01 1" ) ;
4337 expect (
4438 await context . readContract ! ( {
4539 contractAddress : leaderContractAddress ,
@@ -48,7 +42,6 @@ describeSuite({
4842 args : [ ALITH_ADDRESS ] ,
4943 } )
5044 ) . to . be . false ;
51- console . log ( "beforeAll Proxy Leader Demo T01 2" ) ;
5245
5346 const rawTx = context . writeContract ! ( {
5447 contractName : "ProxyLeaderDemo" ,
@@ -58,19 +51,15 @@ describeSuite({
5851 rawTxOnly : true ,
5952 gas : 1000000n ,
6053 } ) ;
61- console . log ( "beforeAll Proxy Leader Demo T01 3" ) ;
6254 const { result } = await context . createBlock ( rawTx ) ;
63- console . log ( "beforeAll Proxy Leader Demo T01 4" ) ;
6455 expectEVMResult ( result ! . events , "Revert" ) ;
65- console . log ( "beforeAll Proxy Leader Demo T01 5" ) ;
6656 } ,
6757 } ) ;
6858
6959 it ( {
7060 id : "T02" ,
7161 title : "should not be able to vote for non-participant" ,
7262 test : async function ( ) {
73- console . log ( "beforeAll Proxy Leader Demo T02 1" ) ;
7463 expect (
7564 await context . readContract ! ( {
7665 contractAddress : leaderContractAddress ,
@@ -79,7 +68,6 @@ describeSuite({
7968 args : [ BALTATHAR_ADDRESS ] ,
8069 } )
8170 ) . to . be . true ;
82- console . log ( "beforeAll Proxy Leader Demo T02 2" ) ;
8371
8472 const rawTx = context . writeContract ! ( {
8573 contractName : "ProxyLeaderDemo" ,
@@ -90,19 +78,15 @@ describeSuite({
9078 privateKey : BALTATHAR_PRIVATE_KEY ,
9179 gas : 1000000n ,
9280 } ) ;
93- console . log ( "beforeAll Proxy Leader Demo T02 3" ) ;
9481 const { result } = await context . createBlock ( rawTx ) ;
95- console . log ( "beforeAll Proxy Leader Demo T02 4" ) ;
9682 expectEVMResult ( result ! . events , "Revert" ) ;
97- console . log ( "beforeAll Proxy Leader Demo T02 5" ) ;
9883 } ,
9984 } ) ;
10085
10186 it ( {
10287 id : "T03" ,
10388 title : "should be able to vote for participant when participant" ,
10489 test : async function ( ) {
105- console . log ( "beforeAll Proxy Leader Demo T03 1" ) ;
10690 expect (
10791 await context . readContract ! ( {
10892 contractAddress : leaderContractAddress ,
@@ -111,7 +95,6 @@ describeSuite({
11195 args : [ BALTATHAR_ADDRESS ] ,
11296 } )
11397 ) . to . be . true ;
114- console . log ( "beforeAll Proxy Leader Demo T03 2" ) ;
11598
11699 const rawTx = context . writeContract ! ( {
117100 contractName : "ProxyLeaderDemo" ,
@@ -122,12 +105,9 @@ describeSuite({
122105 privateKey : BALTATHAR_PRIVATE_KEY ,
123106 gas : 1_000_000n ,
124107 } ) ;
125- console . log ( "beforeAll Proxy Leader Demo T03 3" ) ;
126108 const { result } = await context . createBlock ( rawTx ) ;
127- console . log ( "beforeAll Proxy Leader Demo T03 4" ) ;
128109
129110 expectEVMResult ( result ! . events , "Succeed" ) ;
130- console . log ( "beforeAll Proxy Leader Demo T03 5" ) ;
131111 expect (
132112 await context . readContract ! ( {
133113 contractAddress : leaderContractAddress ,
@@ -136,7 +116,6 @@ describeSuite({
136116 args : [ BALTATHAR_ADDRESS ] ,
137117 } )
138118 ) . to . be . false ;
139- console . log ( "beforeAll Proxy Leader Demo T03 6" ) ;
140119 } ,
141120 } ) ;
142121 } ,
0 commit comments