File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
hardhat/test/blindAuction Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,6 @@ describe("BlindAuction", function () {
7676 await Promise . all ( [ txBobApprove . wait ( ) , txCarolApprove . wait ( ) ] ) ;
7777
7878 // Submit bids
79- // Need to add gasLimit to avoid a gas limit issue for two parallel bids
80- // When two tx are consecutive in the same block, if the similar second is asking more gas the tx will fail
81- // because the allocated gas will be the first one gas amount.
82- // This is typically the case for the bid method and the if, else branch inside, i.e. the first bid has no further computation
83- // concerning the highestBid but all the following need to check against the current one.
84-
85- // part 1
8679 const input3 = this . instance . createEncryptedInput ( this . contractAddress , this . signers . bob . address ) ;
8780 input3 . add64 ( 10 ) ;
8881 const bobBidAmount_auction = await input3 . encrypt ( ) ;
@@ -92,7 +85,6 @@ describe("BlindAuction", function () {
9285 . bid ( bobBidAmount_auction . handles [ 0 ] , bobBidAmount_auction . inputProof , { gasLimit : 5000000 } ) ;
9386 txBobBid . wait ( ) ;
9487
95- // part 2
9688 const input4 = this . instance . createEncryptedInput ( this . contractAddress , this . signers . carol . address ) ;
9789 input4 . add64 ( 20 ) ;
9890 const carolBidAmount_auction = await input4 . encrypt ( ) ;
You can’t perform that action at this time.
0 commit comments