@@ -132,29 +132,29 @@ describe('TestAsyncDecrypt', function () {
132132 expect ( y ) . to . equal ( 52 ) ; // 5+15+32
133133 } ) ;
134134
135- it ( 'test async decrypt uint32 - two requests in same block' , async function ( ) {
136- const pendingNonce = await ethers . provider . getTransactionCount ( this . signers . alice . address , 'pending' ) ;
135+ // it('test async decrypt uint32 - two requests in same block', async function () {
136+ // const pendingNonce = await ethers.provider.getTransactionCount(this.signers.alice.address, 'pending');
137137
138- const txA = await this . contract . requestUint32_2 ( {
139- nonce : pendingNonce ,
140- } ) ;
141- const txB = await this . contract . requestUint32_3 ( {
142- nonce : pendingNonce + 1 ,
143- } ) ;
138+ // const txA = await this.contract.requestUint32_2({
139+ // nonce: pendingNonce,
140+ // });
141+ // const txB = await this.contract.requestUint32_3({
142+ // nonce: pendingNonce + 1,
143+ // });
144144
145145
146- const [ receiptA , receiptB ] = await Promise . all ( [ txA . wait ( ) , txB . wait ( ) ] ) ;
146+ // const [receiptA, receiptB] = await Promise.all([txA.wait(), txB.wait()]);
147147
148- console . log ( 'txA block:' , receiptA . blockNumber ) ;
149- console . log ( 'txB block:' , receiptB . blockNumber ) ;
148+ // console.log('txA block:', receiptA.blockNumber);
149+ // console.log('txB block:', receiptB.blockNumber);
150150
151- await awaitAllDecryptionResults ( ) ;
151+ // await awaitAllDecryptionResults();
152152
153- const y2 = await this . contract . yUint32_2 ( ) ;
154- expect ( y2 ) . to . equal ( 1000 ) ;
155- const y3 = await this . contract . yUint32_3 ( ) ;
156- expect ( y3 ) . to . equal ( 2000 ) ;
157- } ) ;
153+ // const y2 = await this.contract.yUint32_2();
154+ // expect(y2).to.equal(1000);
155+ // const y3 = await this.contract.yUint32_3();
156+ // expect(y3).to.equal(2000);
157+ // });
158158
159159 it . skip ( 'test async decrypt FAKE uint32' , async function ( ) {
160160 if ( network . name !== 'hardhat' ) {
0 commit comments