1
- use alloy_consensus :: Signed ;
1
+ use alloy :: consensus :: Signed ;
2
2
use alloy_primitives:: U256 ;
3
3
use revm:: primitives:: { BlobExcessGasAndPrice , BlockEnv , TxEnv } ;
4
4
5
5
use crate :: { Block , Tx } ;
6
6
7
- impl Tx for Signed < alloy_consensus :: TxLegacy > {
7
+ impl Tx for Signed < alloy :: consensus :: TxLegacy > {
8
8
fn fill_tx_env ( & self , tx_env : & mut revm:: primitives:: TxEnv ) {
9
9
let TxEnv {
10
10
caller,
@@ -37,7 +37,7 @@ impl Tx for Signed<alloy_consensus::TxLegacy> {
37
37
}
38
38
}
39
39
40
- impl Tx for Signed < alloy_consensus :: TxEip2930 > {
40
+ impl Tx for Signed < alloy :: consensus :: TxEip2930 > {
41
41
fn fill_tx_env ( & self , tx_env : & mut revm:: primitives:: TxEnv ) {
42
42
let TxEnv {
43
43
caller,
@@ -70,7 +70,7 @@ impl Tx for Signed<alloy_consensus::TxEip2930> {
70
70
}
71
71
}
72
72
73
- impl Tx for Signed < alloy_consensus :: TxEip1559 > {
73
+ impl Tx for Signed < alloy :: consensus :: TxEip1559 > {
74
74
fn fill_tx_env ( & self , tx_env : & mut revm:: primitives:: TxEnv ) {
75
75
let TxEnv {
76
76
caller,
@@ -103,7 +103,7 @@ impl Tx for Signed<alloy_consensus::TxEip1559> {
103
103
}
104
104
}
105
105
106
- impl Tx for Signed < alloy_consensus :: TxEip4844 > {
106
+ impl Tx for Signed < alloy :: consensus :: TxEip4844 > {
107
107
fn fill_tx_env ( & self , tx_env : & mut revm:: primitives:: TxEnv ) {
108
108
let TxEnv {
109
109
caller,
@@ -136,7 +136,7 @@ impl Tx for Signed<alloy_consensus::TxEip4844> {
136
136
}
137
137
}
138
138
139
- impl Tx for Signed < alloy_consensus :: TxEip4844WithSidecar > {
139
+ impl Tx for Signed < alloy :: consensus :: TxEip4844WithSidecar > {
140
140
fn fill_tx_env ( & self , tx_env : & mut revm:: primitives:: TxEnv ) {
141
141
let TxEnv {
142
142
caller,
@@ -169,7 +169,7 @@ impl Tx for Signed<alloy_consensus::TxEip4844WithSidecar> {
169
169
}
170
170
}
171
171
172
- impl Tx for Signed < alloy_consensus :: TxEip4844Variant > {
172
+ impl Tx for Signed < alloy :: consensus :: TxEip4844Variant > {
173
173
fn fill_tx_env ( & self , tx_env : & mut revm:: primitives:: TxEnv ) {
174
174
let TxEnv {
175
175
caller,
@@ -187,8 +187,8 @@ impl Tx for Signed<alloy_consensus::TxEip4844Variant> {
187
187
authorization_list,
188
188
} = tx_env;
189
189
let tx = match self . tx ( ) {
190
- alloy_consensus :: TxEip4844Variant :: TxEip4844 ( tx) => tx,
191
- alloy_consensus :: TxEip4844Variant :: TxEip4844WithSidecar ( tx) => & tx. tx ,
190
+ alloy :: consensus :: TxEip4844Variant :: TxEip4844 ( tx) => tx,
191
+ alloy :: consensus :: TxEip4844Variant :: TxEip4844WithSidecar ( tx) => & tx. tx ,
192
192
} ;
193
193
* caller = self . recover_signer ( ) . unwrap ( ) ;
194
194
* gas_limit = tx. gas_limit as u64 ;
@@ -206,7 +206,7 @@ impl Tx for Signed<alloy_consensus::TxEip4844Variant> {
206
206
}
207
207
}
208
208
209
- impl Tx for alloy_consensus :: TxEnvelope {
209
+ impl Tx for alloy :: consensus :: TxEnvelope {
210
210
fn fill_tx_env ( & self , tx_env : & mut revm:: primitives:: TxEnv ) {
211
211
match self {
212
212
Self :: Legacy ( t) => t. fill_tx_env ( tx_env) ,
@@ -218,7 +218,7 @@ impl Tx for alloy_consensus::TxEnvelope {
218
218
}
219
219
}
220
220
221
- impl Block for alloy_consensus :: Header {
221
+ impl Block for alloy :: consensus :: Header {
222
222
fn fill_block_env ( & self , block_env : & mut revm:: primitives:: BlockEnv ) {
223
223
let BlockEnv {
224
224
number,
@@ -249,7 +249,7 @@ impl Block for alloy_consensus::Header {
249
249
}
250
250
}
251
251
252
- impl Block for alloy_rpc_types_eth :: Header {
252
+ impl Block for alloy :: rpc :: types :: eth :: Header {
253
253
fn fill_block_env ( & self , block_env : & mut revm:: primitives:: BlockEnv ) {
254
254
let BlockEnv {
255
255
number,
@@ -273,7 +273,7 @@ impl Block for alloy_rpc_types_eth::Header {
273
273
}
274
274
}
275
275
276
- impl < T > Block for alloy_rpc_types_eth :: Block < T > {
276
+ impl < T > Block for alloy :: rpc :: types :: eth :: Block < T > {
277
277
fn fill_block_env ( & self , block_env : & mut revm:: primitives:: BlockEnv ) {
278
278
self . header . fill_block_env ( block_env) ;
279
279
}
@@ -286,7 +286,7 @@ impl<T> Block for alloy_rpc_types_eth::Block<T> {
286
286
#[ cfg( test) ]
287
287
mod tests {
288
288
use crate :: { NoopBlock , NoopCfg , TrevmBuilder } ;
289
- use alloy_consensus :: { Header , TxEnvelope , EMPTY_ROOT_HASH } ;
289
+ use alloy :: consensus :: { Header , TxEnvelope , EMPTY_ROOT_HASH } ;
290
290
291
291
use alloy_rlp:: Decodable ;
292
292
0 commit comments