@@ -90,16 +90,25 @@ export default class TokenContractBenchmark extends Benchmark {
9090 // 1. deposit_private_to_private
9191 // 2. deposit_private_to_public
9292 // 3. deposit_private_to_private_exact
93- // 4. issue_private_to_public_exact
94- // 5. issue_private_to_private_exact
93+ // 4. issue_private_to_private_exact
9594 const authWitnesses = [ ] ;
96- for ( let i = 0 ; i < 5 ; i ++ ) {
95+ for ( let i = 0 ; i < 4 ; i ++ ) {
9796 const nonce = 100 + i ;
9897 action = assetMethods . transfer_private_to_public ( deployer . getAddress ( ) , vaultContract . address , amt ( 1 ) , nonce ) ;
9998 const authWitness = await setPrivateAuthWit ( vaultContract . address , action , deployer ) ;
10099 authWitnesses . push ( authWitness ) ;
101100 }
102101
102+ // 5. issue_private_to_public_exact
103+ action = assetMethods . transfer_private_to_public_with_commitment (
104+ deployer . getAddress ( ) ,
105+ vaultContract . address ,
106+ amt ( 1 ) ,
107+ 104 ,
108+ ) ;
109+ const authWitness = await setPrivateAuthWit ( vaultContract . address , action , deployer ) ;
110+ authWitnesses . push ( authWitness ) ;
111+
103112 return { pxe, deployer, accounts, vaultContract, assetContract, authWitnesses } ;
104113 }
105114
@@ -148,11 +157,11 @@ export default class TokenContractBenchmark extends Benchmark {
148157 vaultContract
149158 . withWallet ( alice )
150159 . methods . issue_private_to_public_exact ( aliceAddress , bobAddress , amt ( 1 ) , amt ( 1 ) , privateNonce ++ )
151- . with ( { authWitnesses : [ authWitnesses [ 3 ] ] } ) ,
160+ . with ( { authWitnesses : [ authWitnesses [ 4 ] ] } ) ,
152161 vaultContract
153162 . withWallet ( alice )
154163 . methods . issue_private_to_private_exact ( aliceAddress , bobAddress , amt ( 1 ) , amt ( 1 ) , privateNonce ++ )
155- . with ( { authWitnesses : [ authWitnesses [ 4 ] ] } ) ,
164+ . with ( { authWitnesses : [ authWitnesses [ 3 ] ] } ) ,
156165
157166 // Withdraw methods
158167 vaultContract . withWallet ( bob ) . methods . withdraw_public_to_public ( bobAddress , aliceAddress , amt ( 1 ) , 0 ) ,
0 commit comments