@@ -92,7 +92,6 @@ pub trait CheatcodesExecutor {
9292 db : & mut ccx. ecx . db as & mut dyn DatabaseExt ,
9393 error,
9494 l1_block_info,
95- valid_authorizations : std:: mem:: take ( & mut ccx. ecx . valid_authorizations ) ,
9695 } ;
9796
9897 let mut evm = new_evm_with_existing_context ( inner, & mut inspector as _ ) ;
@@ -103,7 +102,6 @@ pub trait CheatcodesExecutor {
103102 ccx. ecx . env = evm. context . evm . inner . env ;
104103 ccx. ecx . l1_block_info = evm. context . evm . inner . l1_block_info ;
105104 ccx. ecx . error = evm. context . evm . inner . error ;
106- ccx. ecx . valid_authorizations = evm. context . evm . inner . valid_authorizations ;
107105
108106 Ok ( res)
109107 }
@@ -647,7 +645,7 @@ impl Cheatcodes {
647645 crate :: Vm :: AccountAccessKind :: Create as u8
648646 ) ;
649647 if let Some ( address) = outcome. address {
650- if let Ok ( ( created_acc, _ ) ) =
648+ if let Ok ( created_acc) =
651649 ecx. journaled_state . load_account ( address, & mut ecx. db )
652650 {
653651 create_access. newBalance = created_acc. info . balance ;
@@ -888,7 +886,7 @@ impl Cheatcodes {
888886 // nonce, a non-zero KECCAK_EMPTY codehash, or non-empty code
889887 let initialized;
890888 let old_balance;
891- if let Ok ( ( acc, _ ) ) = ecx. load_account ( call. target_address ) {
889+ if let Ok ( acc) = ecx. load_account ( call. target_address ) {
892890 initialized = acc. info . exists ( ) ;
893891 old_balance = acc. info . balance ;
894892 } else {
@@ -1130,7 +1128,7 @@ impl<DB: DatabaseExt> Inspector<DB> for Cheatcodes {
11301128 // Depending on the depth the cheat was called at, there may not be any pending
11311129 // calls to update if execution has percolated up to a higher depth.
11321130 if call_access. depth == ecx. journaled_state . depth ( ) {
1133- if let Ok ( ( acc, _ ) ) = ecx. load_account ( call. target_address ) {
1131+ if let Ok ( acc) = ecx. load_account ( call. target_address ) {
11341132 debug_assert ! ( access_is_call( call_access. kind) ) ;
11351133 call_access. newBalance = acc. info . balance ;
11361134 }
@@ -1438,13 +1436,13 @@ impl Cheatcodes {
14381436 let target = Address :: from_word ( B256 :: from ( target) ) ;
14391437 let ( initialized, old_balance) = ecx
14401438 . load_account ( target)
1441- . map ( |( account, _ ) | ( account. info . exists ( ) , account. info . balance ) )
1439+ . map ( |account| ( account. info . exists ( ) , account. info . balance ) )
14421440 . unwrap_or_default ( ) ;
14431441
14441442 // load balance of this account
14451443 let value = ecx
14461444 . balance ( interpreter. contract ( ) . target_address )
1447- . map ( |( b , _ ) | b)
1445+ . map ( |b | b. data )
14481446 . unwrap_or ( U256 :: ZERO ) ;
14491447
14501448 // register access for the target account
@@ -1479,8 +1477,8 @@ impl Cheatcodes {
14791477 let mut present_value = U256 :: ZERO ;
14801478 // Try to load the account and the slot's present value
14811479 if ecx. load_account ( address) . is_ok ( ) {
1482- if let Ok ( ( previous, _ ) ) = ecx. sload ( address, key) {
1483- present_value = previous;
1480+ if let Ok ( previous) = ecx. sload ( address, key) {
1481+ present_value = previous. data ;
14841482 }
14851483 }
14861484 let access = crate :: Vm :: StorageAccess {
@@ -1503,8 +1501,8 @@ impl Cheatcodes {
15031501 // not set (zero value)
15041502 let mut previous_value = U256 :: ZERO ;
15051503 if ecx. load_account ( address) . is_ok ( ) {
1506- if let Ok ( ( previous, _ ) ) = ecx. sload ( address, key) {
1507- previous_value = previous;
1504+ if let Ok ( previous) = ecx. sload ( address, key) {
1505+ previous_value = previous. data ;
15081506 }
15091507 }
15101508
@@ -1532,7 +1530,7 @@ impl Cheatcodes {
15321530 Address :: from_word ( B256 :: from ( try_or_return ! ( interpreter. stack( ) . peek( 0 ) ) ) ) ;
15331531 let initialized;
15341532 let balance;
1535- if let Ok ( ( acc, _ ) ) = ecx. load_account ( address) {
1533+ if let Ok ( acc) = ecx. load_account ( address) {
15361534 initialized = acc. info . exists ( ) ;
15371535 balance = acc. info . balance ;
15381536 } else {
0 commit comments