Skip to content
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into refactor_fatal_error
  • Loading branch information
rakita committed Feb 21, 2024
commit ecb327f28f9df11f06ca6cf80e82b35d7727024c
2 changes: 1 addition & 1 deletion crates/revm/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl<DB: Database> EvmContext<DB> {
address: Address,
index: U256,
value: U256,
) -> Result<(U256, U256, U256, bool), EVMError<DB::Error>> {
) -> Result<SStoreResult, EVMError<DB::Error>> {
self.journaled_state
.sstore(address, index, value, &mut self.db)
}
Expand Down
7 changes: 1 addition & 6 deletions crates/revm/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,7 @@ impl<EXT, DB: Database> Host for Evm<'_, EXT, DB> {
.ok()
}

fn sstore(
&mut self,
address: Address,
index: U256,
value: U256,
) -> Option<(U256, U256, U256, bool)> {
fn sstore(&mut self, address: Address, index: U256, value: U256) -> Option<SStoreResult> {
self.context
.evm
.sstore(address, index, value)
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/journaled_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ impl JournaledState {
key: U256,
new: U256,
db: &mut DB,
) -> Result<(U256, U256, U256, bool), EVMError<DB::Error>> {
) -> Result<SStoreResult, EVMError<DB::Error>> {
// assume that acc exists and load the slot.
let (present, is_cold) = self.sload(address, key, db)?;
let acc = self.state.get_mut(&address).unwrap();
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.