@@ -183,7 +183,7 @@ pub fn deduct_caller<SPEC: Spec, EXT, DB: Database>(
183
183
// caller's balance directly after minting the requested amount of ETH.
184
184
if context. evm . env . tx . optimism . source_hash . is_none ( ) {
185
185
// get envelope
186
- let Some ( enveloped_tx) = context. evm . env . tx . optimism . enveloped_tx . clone ( ) else {
186
+ let Some ( enveloped_tx) = & context. evm . env . tx . optimism . enveloped_tx else {
187
187
return Err ( EVMError :: Custom (
188
188
"[OPTIMISM] Failed to load enveloped transaction." . to_string ( ) ,
189
189
) ) ;
@@ -194,7 +194,7 @@ pub fn deduct_caller<SPEC: Spec, EXT, DB: Database>(
194
194
. l1_block_info
195
195
. as_ref ( )
196
196
. expect ( "L1BlockInfo should be loaded" )
197
- . calculate_tx_l1_cost ( & enveloped_tx, SPEC :: SPEC_ID ) ;
197
+ . calculate_tx_l1_cost ( enveloped_tx, SPEC :: SPEC_ID ) ;
198
198
if tx_l1_cost. gt ( & caller_account. info . balance ) {
199
199
return Err ( EVMError :: Transaction (
200
200
InvalidTransaction :: LackOfFundForMaxFee {
@@ -224,7 +224,7 @@ pub fn reward_beneficiary<SPEC: Spec, EXT, DB: Database>(
224
224
if !is_deposit {
225
225
// If the transaction is not a deposit transaction, fees are paid out
226
226
// to both the Base Fee Vault as well as the L1 Fee Vault.
227
- let Some ( l1_block_info) = context. evm . l1_block_info . clone ( ) else {
227
+ let Some ( l1_block_info) = & context. evm . l1_block_info else {
228
228
return Err ( EVMError :: Custom (
229
229
"[OPTIMISM] Failed to load L1 block information." . to_string ( ) ,
230
230
) ) ;
0 commit comments