You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helper wrapper methods can be added to all of the methods in JournaledState that require a DB on EvmContext by just passing along all arguments to self.journaled_state.<method>(..., &mut self.db).
E.g. load_code:
// JournaledStateimplJournaledState{pubfnload_code<DB:Database>(&mutself,address:Address,db:&mutDB,) -> Result<(&mutAccount,bool),EVMError<DB::Error>>{/* ... */}}// Wrapper in EvmContextimpl<DB:Database>EvmContext<DB>{pubfnload_code(&mutself,address:Address) -> Result<(&mutAccount,bool),EVMError<DB::Error>>{// same resultself.journaled_state.load_code(address,&mutself.db)}}
The text was updated successfully, but these errors were encountered:
Helper wrapper methods can be added to all of the methods in
JournaledState
that require aDB
onEvmContext
by just passing along all arguments toself.journaled_state.<method>(..., &mut self.db)
.E.g.
load_code
:The text was updated successfully, but these errors were encountered: