@@ -435,7 +435,7 @@ impl Cheatcode for getChainIdCall {
435
435
impl Cheatcode for chainIdCall {
436
436
fn apply_stateful ( & self , ccx : & mut CheatsCtxt ) -> Result {
437
437
let Self { newChainId } = self ;
438
- ensure ! ( * newChainId <= U256 :: from( u64 :: MAX ) , "chain ID must be less than 2^64 - 1 " ) ;
438
+ ensure ! ( * newChainId <= U256 :: from( u64 :: MAX ) , "chain ID must be less than 2^64" ) ;
439
439
ccx. ecx . cfg . chain_id = newChainId. to ( ) ;
440
440
Ok ( Default :: default ( ) )
441
441
}
@@ -465,7 +465,7 @@ impl Cheatcode for difficultyCall {
465
465
impl Cheatcode for feeCall {
466
466
fn apply_stateful ( & self , ccx : & mut CheatsCtxt ) -> Result {
467
467
let Self { newBasefee } = self ;
468
- ensure ! ( * newBasefee <= U256 :: from( u64 :: MAX ) , "base fee must be less than 2^64 - 1 " ) ;
468
+ ensure ! ( * newBasefee <= U256 :: from( u64 :: MAX ) , "base fee must be less than 2^64" ) ;
469
469
ccx. ecx . block . basefee = newBasefee. saturating_to ( ) ;
470
470
Ok ( Default :: default ( ) )
471
471
}
@@ -542,7 +542,7 @@ impl Cheatcode for getBlockNumberCall {
542
542
impl Cheatcode for txGasPriceCall {
543
543
fn apply_stateful ( & self , ccx : & mut CheatsCtxt ) -> Result {
544
544
let Self { newGasPrice } = self ;
545
- ensure ! ( * newGasPrice <= U256 :: from( u64 :: MAX ) , "gas price must be less than 2^64 - 1 " ) ;
545
+ ensure ! ( * newGasPrice <= U256 :: from( u64 :: MAX ) , "gas price must be less than 2^64" ) ;
546
546
ccx. ecx . tx . gas_price = newGasPrice. saturating_to ( ) ;
547
547
Ok ( Default :: default ( ) )
548
548
}
@@ -946,7 +946,7 @@ impl Cheatcode for broadcastRawTransactionCall {
946
946
impl Cheatcode for setBlockhashCall {
947
947
fn apply_stateful ( & self , ccx : & mut CheatsCtxt ) -> Result {
948
948
let Self { blockNumber, blockHash } = * self ;
949
- ensure ! ( blockNumber <= U256 :: from( u64 :: MAX ) , "blockNumber must be less than 2^64 - 1 " ) ;
949
+ ensure ! ( blockNumber <= U256 :: from( u64 :: MAX ) , "blockNumber must be less than 2^64" ) ;
950
950
ensure ! (
951
951
blockNumber <= U256 :: from( ccx. ecx. block. number) ,
952
952
"block number must be less than or equal to the current block number"
0 commit comments