@@ -373,7 +373,7 @@ impl EthApi {
373
373
if time >= U256 :: from ( u64:: MAX ) {
374
374
return ResponseResult :: Error ( RpcError :: invalid_params (
375
375
"The timestamp is too big" ,
376
- ) )
376
+ ) ) ;
377
377
}
378
378
let time = time. to :: < u64 > ( ) ;
379
379
self . evm_set_next_block_timestamp ( time) . to_rpc_result ( )
@@ -382,7 +382,7 @@ impl EthApi {
382
382
if timestamp >= U256 :: from ( u64:: MAX ) {
383
383
return ResponseResult :: Error ( RpcError :: invalid_params (
384
384
"The timestamp is too big" ,
385
- ) )
385
+ ) ) ;
386
386
}
387
387
let time = timestamp. to :: < u64 > ( ) ;
388
388
self . evm_set_time ( time) . to_rpc_result ( )
@@ -491,13 +491,13 @@ impl EthApi {
491
491
B256 :: with_last_byte ( 1 ) ,
492
492
false ,
493
493
) ;
494
- return build_typed_transaction ( request, nil_signature)
494
+ return build_typed_transaction ( request, nil_signature) ;
495
495
}
496
496
_ => {
497
497
for signer in self . signers . iter ( ) {
498
498
if signer. accounts ( ) . contains ( from) {
499
499
let signature = signer. sign_transaction ( request. clone ( ) , from) ?;
500
- return build_typed_transaction ( request, signature)
500
+ return build_typed_transaction ( request, signature) ;
501
501
}
502
502
}
503
503
}
@@ -688,7 +688,7 @@ impl EthApi {
688
688
if let BlockRequest :: Number ( number) = block_request {
689
689
if let Some ( fork) = self . get_fork ( ) {
690
690
if fork. predates_fork ( number) {
691
- return Ok ( fork. get_balance ( address, number) . await ?)
691
+ return Ok ( fork. get_balance ( address, number) . await ?) ;
692
692
}
693
693
}
694
694
}
@@ -711,7 +711,7 @@ impl EthApi {
711
711
if let BlockRequest :: Number ( number) = block_request {
712
712
if let Some ( fork) = self . get_fork ( ) {
713
713
if fork. predates_fork ( number) {
714
- return Ok ( fork. get_account ( address, number) . await ?)
714
+ return Ok ( fork. get_account ( address, number) . await ?) ;
715
715
}
716
716
}
717
717
}
@@ -868,7 +868,7 @@ impl EthApi {
868
868
if let BlockRequest :: Number ( number) = block_request {
869
869
if let Some ( fork) = self . get_fork ( ) {
870
870
if fork. predates_fork ( number) {
871
- return Ok ( fork. get_code ( address, number) . await ?)
871
+ return Ok ( fork. get_code ( address, number) . await ?) ;
872
872
}
873
873
}
874
874
}
@@ -893,7 +893,7 @@ impl EthApi {
893
893
if let BlockRequest :: Number ( number) = block_request {
894
894
if let Some ( fork) = self . get_fork ( ) {
895
895
if fork. predates_fork_inclusive ( number) {
896
- return Ok ( fork. get_proof ( address, keys, Some ( number. into ( ) ) ) . await ?)
896
+ return Ok ( fork. get_proof ( address, keys, Some ( number. into ( ) ) ) . await ?) ;
897
897
}
898
898
}
899
899
}
@@ -1079,7 +1079,7 @@ impl EthApi {
1079
1079
"not available on past forked blocks" . to_string ( ) ,
1080
1080
) ) ;
1081
1081
}
1082
- return Ok ( fork. call ( & request, Some ( number. into ( ) ) ) . await ?)
1082
+ return Ok ( fork. call ( & request, Some ( number. into ( ) ) ) . await ?) ;
1083
1083
}
1084
1084
}
1085
1085
}
@@ -1127,7 +1127,7 @@ impl EthApi {
1127
1127
if let BlockRequest :: Number ( number) = block_request {
1128
1128
if let Some ( fork) = self . get_fork ( ) {
1129
1129
if fork. predates_fork ( number) {
1130
- return Ok ( fork. create_access_list ( & request, Some ( number. into ( ) ) ) . await ?)
1130
+ return Ok ( fork. create_access_list ( & request, Some ( number. into ( ) ) ) . await ?) ;
1131
1131
}
1132
1132
}
1133
1133
}
@@ -1271,7 +1271,7 @@ impl EthApi {
1271
1271
self . backend . ensure_block_number ( Some ( BlockId :: Hash ( block_hash. into ( ) ) ) ) . await ?;
1272
1272
if let Some ( fork) = self . get_fork ( ) {
1273
1273
if fork. predates_fork_inclusive ( number) {
1274
- return Ok ( fork. uncle_by_block_hash_and_index ( block_hash, idx. into ( ) ) . await ?)
1274
+ return Ok ( fork. uncle_by_block_hash_and_index ( block_hash, idx. into ( ) ) . await ?) ;
1275
1275
}
1276
1276
}
1277
1277
// It's impossible to have uncles outside of fork mode
@@ -1290,7 +1290,7 @@ impl EthApi {
1290
1290
let number = self . backend . ensure_block_number ( Some ( BlockId :: Number ( block_number) ) ) . await ?;
1291
1291
if let Some ( fork) = self . get_fork ( ) {
1292
1292
if fork. predates_fork_inclusive ( number) {
1293
- return Ok ( fork. uncle_by_block_number_and_index ( number, idx. into ( ) ) . await ?)
1293
+ return Ok ( fork. uncle_by_block_number_and_index ( number, idx. into ( ) ) . await ?) ;
1294
1294
}
1295
1295
}
1296
1296
// It's impossible to have uncles outside of fork mode
@@ -2449,7 +2449,7 @@ impl EthApi {
2449
2449
// Validate the request
2450
2450
// reject transactions that have a non-zero value to prevent draining the executor.
2451
2451
if request. value . is_some_and ( |val| val > U256 :: ZERO ) {
2452
- return Err ( WalletError :: ValueNotZero . into ( ) )
2452
+ return Err ( WalletError :: ValueNotZero . into ( ) ) ;
2453
2453
}
2454
2454
2455
2455
// reject transactions that have from set, as this will be the executor.
@@ -2623,7 +2623,7 @@ impl EthApi {
2623
2623
"not available on past forked blocks" . to_string ( ) ,
2624
2624
) ) ;
2625
2625
}
2626
- return Ok ( fork. estimate_gas ( & request, Some ( number. into ( ) ) ) . await ?)
2626
+ return Ok ( fork. estimate_gas ( & request, Some ( number. into ( ) ) ) . await ?) ;
2627
2627
}
2628
2628
}
2629
2629
}
@@ -2984,7 +2984,7 @@ impl EthApi {
2984
2984
if let BlockRequest :: Number ( number) = block_request {
2985
2985
if let Some ( fork) = self . get_fork ( ) {
2986
2986
if fork. predates_fork ( number) {
2987
- return Ok ( fork. get_nonce ( address, number) . await ?)
2987
+ return Ok ( fork. get_nonce ( address, number) . await ?) ;
2988
2988
}
2989
2989
}
2990
2990
}
@@ -3123,9 +3123,12 @@ impl TryFrom<Result<(InstructionResult, Option<Output>, u128, State)>> for GasEs
3123
3123
}
3124
3124
Err ( err) => Err ( err) ,
3125
3125
Ok ( ( exit, output, gas, _) ) => match exit {
3126
- InstructionResult :: Continue | InstructionResult :: Stop |
3127
- InstructionResult :: Return | InstructionResult :: SelfDestruct |
3128
- InstructionResult :: ReturnContract | InstructionResult :: CallOrCreate => Ok ( Self :: Success ( gas) ) ,
3126
+ InstructionResult :: Continue |
3127
+ InstructionResult :: Stop |
3128
+ InstructionResult :: Return |
3129
+ InstructionResult :: SelfDestruct |
3130
+ InstructionResult :: ReturnContract |
3131
+ InstructionResult :: CallOrCreate => Ok ( Self :: Success ( gas) ) ,
3129
3132
3130
3133
InstructionResult :: Revert => Ok ( Self :: Revert ( output. map ( |o| o. into_data ( ) ) ) ) ,
3131
3134
0 commit comments