@@ -65,7 +65,7 @@ function shouldBehaveLikeVotes(tokens, { mode = 'blocknumber', fungible = true }
6565
6666 expect ( await this . votes . delegates ( this . alice ) ) . to . equal ( this . alice ) ;
6767 expect ( await this . votes . getVotes ( this . alice ) ) . to . equal ( weight ) ;
68- expect ( await this . votes . getVotes ( this . bob ) ) . to . equal ( 0 ) ;
68+ expect ( await this . votes . getVotes ( this . bob ) ) . to . equal ( 0n ) ;
6969
7070 const tx = await this . votes . connect ( this . alice ) . delegate ( this . bob ) ;
7171 const timepoint = await time . clockFromReceipt [ mode ] ( tx ) ;
@@ -74,9 +74,9 @@ function shouldBehaveLikeVotes(tokens, { mode = 'blocknumber', fungible = true }
7474 . to . emit ( this . votes , 'DelegateChanged' )
7575 . withArgs ( this . alice , this . alice , this . bob )
7676 . to . emit ( this . votes , 'DelegateVotesChanged' )
77- . withArgs ( this . alice , weight , 0 )
77+ . withArgs ( this . alice , weight , 0n )
7878 . to . emit ( this . votes , 'DelegateVotesChanged' )
79- . withArgs ( this . bob , 0 , weight ) ;
79+ . withArgs ( this . bob , 0n , weight ) ;
8080
8181 expect ( await this . votes . delegates ( this . alice ) ) . to . equal ( this . bob ) ;
8282 expect ( await this . votes . getVotes ( this . alice ) ) . to . equal ( 0n ) ;
@@ -117,7 +117,7 @@ function shouldBehaveLikeVotes(tokens, { mode = 'blocknumber', fungible = true }
117117 . to . emit ( this . votes , 'DelegateChanged' )
118118 . withArgs ( this . delegator , ethers . ZeroAddress , this . delegatee )
119119 . to . emit ( this . votes , 'DelegateVotesChanged' )
120- . withArgs ( this . delegatee , 0 , weight ) ;
120+ . withArgs ( this . delegatee , 0n , weight ) ;
121121
122122 expect ( await this . votes . delegates ( this . delegator . address ) ) . to . equal ( this . delegatee ) ;
123123 expect ( await this . votes . getVotes ( this . delegator . address ) ) . to . equal ( 0n ) ;
@@ -187,7 +187,7 @@ function shouldBehaveLikeVotes(tokens, { mode = 'blocknumber', fungible = true }
187187
188188 await expect ( this . votes . delegateBySig ( this . delegatee , nonce + 1n , ethers . MaxUint256 , v , r , s ) )
189189 . to . be . revertedWithCustomError ( this . votes , 'InvalidAccountNonce' )
190- . withArgs ( this . delegator , 0 ) ;
190+ . withArgs ( this . delegator , 0n ) ;
191191 } ) ;
192192
193193 it ( 'rejects expired permit' , async function ( ) {
@@ -217,7 +217,7 @@ function shouldBehaveLikeVotes(tokens, { mode = 'blocknumber', fungible = true }
217217 } ) ;
218218
219219 it ( 'reverts if block number >= current block' , async function ( ) {
220- const timepoint = 5e10 ;
220+ const timepoint = 50_000_000_000n ;
221221 const clock = await this . votes . clock ( ) ;
222222 await expect ( this . votes . getPastTotalSupply ( timepoint ) )
223223 . to . be . revertedWithCustomError ( this . votes , 'ERC5805FutureLookup' )
@@ -257,7 +257,7 @@ function shouldBehaveLikeVotes(tokens, { mode = 'blocknumber', fungible = true }
257257 t4 . timepoint = await time . clockFromReceipt [ mode ] ( t4 ) ;
258258 t5 . timepoint = await time . clockFromReceipt [ mode ] ( t5 ) ;
259259
260- expect ( await this . votes . getPastTotalSupply ( t0 . timepoint - 1n ) ) . to . equal ( 0 ) ;
260+ expect ( await this . votes . getPastTotalSupply ( t0 . timepoint - 1n ) ) . to . equal ( 0n ) ;
261261 expect ( await this . votes . getPastTotalSupply ( t0 . timepoint ) ) . to . equal ( weight [ 0 ] ) ;
262262 expect ( await this . votes . getPastTotalSupply ( t0 . timepoint + 1n ) ) . to . equal ( weight [ 0 ] ) ;
263263 expect ( await this . votes . getPastTotalSupply ( t1 . timepoint ) ) . to . equal ( weight [ 0 ] + weight [ 1 ] ) ;
@@ -268,7 +268,7 @@ function shouldBehaveLikeVotes(tokens, { mode = 'blocknumber', fungible = true }
268268 expect ( await this . votes . getPastTotalSupply ( t3 . timepoint + 1n ) ) . to . equal ( weight [ 0 ] + weight [ 2 ] ) ;
269269 expect ( await this . votes . getPastTotalSupply ( t4 . timepoint ) ) . to . equal ( weight [ 2 ] ) ;
270270 expect ( await this . votes . getPastTotalSupply ( t4 . timepoint + 1n ) ) . to . equal ( weight [ 2 ] ) ;
271- expect ( await this . votes . getPastTotalSupply ( t5 . timepoint ) ) . to . equal ( 0 ) ;
271+ expect ( await this . votes . getPastTotalSupply ( t5 . timepoint ) ) . to . equal ( 0n ) ;
272272 await expect ( this . votes . getPastTotalSupply ( t5 . timepoint + 1n ) )
273273 . to . be . revertedWithCustomError ( this . votes , 'ERC5805FutureLookup' )
274274 . withArgs ( t5 . timepoint + 1n , t5 . timepoint + 1n ) ;
@@ -287,7 +287,7 @@ function shouldBehaveLikeVotes(tokens, { mode = 'blocknumber', fungible = true }
287287 describe ( 'getPastVotes' , function ( ) {
288288 it ( 'reverts if block number >= current block' , async function ( ) {
289289 const clock = await this . votes . clock ( ) ;
290- const timepoint = 5e10 ; // far in the future
290+ const timepoint = 50_000_000_000n ; // far in the future
291291 await expect ( this . votes . getPastVotes ( this . bob , timepoint ) )
292292 . to . be . revertedWithCustomError ( this . votes , 'ERC5805FutureLookup' )
293293 . withArgs ( timepoint , clock ) ;
0 commit comments