File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " trevm"
3- version = " 0.27.2 "
3+ version = " 0.27.3 "
44rust-version = " 1.83.0"
55edition = " 2021"
66authors = [" init4" ]
Original file line number Diff line number Diff line change 11use alloy:: {
2- consensus:: { Signed , TxType } ,
2+ consensus:: { Signed , TxEip4844 , TxType } ,
33 primitives:: U256 ,
44} ;
55use revm:: context:: { BlockEnv , TxEnv } ;
@@ -273,6 +273,18 @@ impl Tx for alloy::consensus::TxEnvelope {
273273 }
274274}
275275
276+ impl Tx for alloy:: consensus:: EthereumTxEnvelope < TxEip4844 > {
277+ fn fill_tx_env ( & self , tx_env : & mut TxEnv ) {
278+ match self {
279+ Self :: Legacy ( t) => t. fill_tx_env ( tx_env) ,
280+ Self :: Eip2930 ( t) => t. fill_tx_env ( tx_env) ,
281+ Self :: Eip1559 ( t) => t. fill_tx_env ( tx_env) ,
282+ Self :: Eip4844 ( t) => t. fill_tx_env ( tx_env) ,
283+ Self :: Eip7702 ( t) => t. fill_tx_env ( tx_env) ,
284+ }
285+ }
286+ }
287+
276288impl Block for alloy:: consensus:: Header {
277289 fn fill_block_env ( & self , block_env : & mut BlockEnv ) {
278290 let BlockEnv {
You can’t perform that action at this time.
0 commit comments