@@ -256,7 +256,6 @@ impl Env {
256
256
}
257
257
}
258
258
259
-
260
259
/// EVM configuration.
261
260
#[ derive( Clone , Debug , Eq , PartialEq , Hash ) ]
262
261
#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
@@ -320,7 +319,8 @@ pub struct CfgEnv {
320
319
#[ cfg( all( feature = "optimism" , not( feature = "taiko" ) ) ) ]
321
320
pub optimism : bool ,
322
321
323
- #[ cfg( all( feature = "taiko" , not( feature = "optimism" ) ) ) ] pub taiko : bool ,
322
+ #[ cfg( all( feature = "taiko" , not( feature = "optimism" ) ) ) ]
323
+ pub taiko : bool ,
324
324
}
325
325
326
326
impl CfgEnv {
@@ -389,7 +389,8 @@ impl CfgEnv {
389
389
self . optimism
390
390
}
391
391
392
- #[ cfg( all( feature = "taiko" , not( feature = "optimism" ) ) ) ] pub fn is_taiko ( & self ) -> bool {
392
+ #[ cfg( all( feature = "taiko" , not( feature = "optimism" ) ) ) ]
393
+ pub fn is_taiko ( & self ) -> bool {
393
394
self . taiko
394
395
}
395
396
}
@@ -465,17 +466,6 @@ pub struct BlockEnv {
465
466
pub blob_excess_gas_and_price : Option < BlobExcessGasAndPrice > ,
466
467
}
467
468
468
- impl BlobExcessGasAndPrice {
469
- /// Takes excess blob gas and calculated blob fee with [`calc_blob_fee`]
470
- pub fn new ( excess_blob_gas : u64 ) -> Self {
471
- let blob_gasprice = calc_blob_gasprice ( excess_blob_gas) ;
472
- Self {
473
- excess_blob_gas,
474
- blob_gasprice,
475
- }
476
- }
477
- }
478
-
479
469
#[ cfg( all( feature = "taiko" , not( feature = "optimism" ) ) ) ]
480
470
#[ derive( Clone , Debug , Default , PartialEq , Eq , Hash ) ]
481
471
#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
@@ -484,7 +474,6 @@ pub struct TaikoFields {
484
474
pub is_anchor : bool ,
485
475
}
486
476
487
-
488
477
impl BlockEnv {
489
478
/// Takes `blob_excess_gas` saves it inside env
490
479
/// and calculates `blob_fee` with [`BlobExcessGasAndPrice`].
@@ -597,7 +586,8 @@ pub struct TxEnv {
597
586
pub optimism : OptimismFields ,
598
587
599
588
#[ cfg_attr( feature = "serde" , serde( flatten) ) ]
600
- #[ cfg( all( feature = "taiko" , not( feature = "optimism" ) ) ) ] pub taiko : TaikoFields ,
589
+ #[ cfg( all( feature = "taiko" , not( feature = "optimism" ) ) ) ]
590
+ pub taiko : TaikoFields ,
601
591
}
602
592
603
593
impl TxEnv {
@@ -813,7 +803,8 @@ mod tests {
813
803
. is_ok( ) ) ;
814
804
}
815
805
816
- #[ cfg( all( feature = "taiko" , not( feature = "optimism" ) ) ) ] #[ test]
806
+ #[ cfg( all( feature = "taiko" , not( feature = "optimism" ) ) ) ]
807
+ #[ test]
817
808
fn test_taiko ( ) {
818
809
// TODO(Cecilia): taiko tests
819
810
}
0 commit comments