@@ -50,7 +50,9 @@ describe("Semaphore", () => {
50
50
. connect ( signers [ 1 ] )
51
51
[ "createGroup(uint256,uint256,address)" ] ( groupId , treeDepth , accounts [ 1 ] )
52
52
53
- await expect ( transaction ) . to . emit ( semaphoreContract , "GroupCreated" ) . withArgs ( groupId , treeDepth , group . zeroValue )
53
+ await expect ( transaction )
54
+ . to . emit ( semaphoreContract , "GroupCreated" )
55
+ . withArgs ( groupId , treeDepth , group . zeroValue )
54
56
await expect ( transaction )
55
57
. to . emit ( semaphoreContract , "GroupAdminUpdated" )
56
58
. withArgs ( groupId , constants . AddressZero , accounts [ 1 ] )
@@ -59,17 +61,21 @@ describe("Semaphore", () => {
59
61
it ( "Should create a group with a custom Merkle tree root expiration" , async ( ) => {
60
62
const groupId = 2
61
63
const group = new Group ( 2 )
62
- const transaction = await semaphoreContract . connect ( signers [ 1 ] ) [ "createGroup(uint256,uint256,address,uint256)" ] (
63
- groupId ,
64
- treeDepth ,
65
- accounts [ 0 ] ,
66
- 5 // 5 seconds.
67
- )
68
- await contract . addMember ( groupId , members [ 0 ] )
69
- await contract . addMember ( groupId , members [ 1 ] )
70
- await contract . addMember ( groupId , members [ 2 ] )
64
+ const transaction = await semaphoreContract
65
+ . connect ( signers [ 1 ] )
66
+ [ "createGroup(uint256,uint256,address,uint256)" ] (
67
+ groupId ,
68
+ treeDepth ,
69
+ accounts [ 0 ] ,
70
+ 5 // 5 seconds.
71
+ )
72
+ await semaphoreContract . addMember ( groupId , members [ 0 ] )
73
+ await semaphoreContract . addMember ( groupId , members [ 1 ] )
74
+ await semaphoreContract . addMember ( groupId , members [ 2 ] )
71
75
72
- await expect ( transaction ) . to . emit ( semaphoreContract , "GroupCreated" ) . withArgs ( groupId , treeDepth , group . zeroValue )
76
+ await expect ( transaction )
77
+ . to . emit ( semaphoreContract , "GroupCreated" )
78
+ . withArgs ( groupId , treeDepth , group . zeroValue )
73
79
await expect ( transaction )
74
80
. to . emit ( semaphoreContract , "GroupAdminUpdated" )
75
81
. withArgs ( groupId , constants . AddressZero , accounts [ 0 ] )
0 commit comments