File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
crates/database/src/states Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ impl CacheAccount {
91
91
)
92
92
}
93
93
94
- /// Returns storage slot if it exist .
94
+ /// Returns storage slot if it exists .
95
95
pub fn storage_slot ( & self , slot : U256 ) -> Option < U256 > {
96
96
self . account
97
97
. as_ref ( )
98
98
. and_then ( |a| a. storage . get ( & slot) . cloned ( ) )
99
99
}
100
100
101
- /// Fetches account info if it exist .
101
+ /// Fetches account info if it exists .
102
102
pub fn account_info ( & self ) -> Option < AccountInfo > {
103
103
self . account . as_ref ( ) . map ( |a| a. info . clone ( ) )
104
104
}
@@ -276,6 +276,9 @@ impl CacheAccount {
276
276
} )
277
277
}
278
278
279
+ // Updates the account with new information and storage changes.
280
+ //
281
+ // Merges the provided storage values with the existing storage and updates the account status.
279
282
pub fn change (
280
283
& mut self ,
281
284
new : AccountInfo ,
You can’t perform that action at this time.
0 commit comments