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
Was playing around with following revm's recent updates today, and looks like this commit breaks something: 3e089f3 .
One of my tests (not all oddly enough) breaks when upgrading from the previous revision to the EIP-2395 revision addition. It might have something to do with this issue as well? #1382
Specifically crashes with the following (snipped to relevant) stack trace:
4: core::option::Option<T>::unwrap
at /rustc/b11fbfbf351b94c7eecf9e6749a4544a6d4717fa/library/core/src/option.rs:931:21
5: revm::journaled_state::JournaledState::sload
at /home/impact/workspace/revm_bluealloy/crates/revm/src/journaled_state.rs:641:52
6: revm::context::inner_evm_context::InnerEvmContext<DB>::sload
at /home/impact/workspace/revm_bluealloy/crates/revm/src/context/inner_evm_context.rs:188:9
7: <revm::evm::Evm<EXT,DB> as revm_interpreter::host::Host>::sload
at /home/impact/workspace/revm_bluealloy/crates/revm/src/evm.rs:465:14
8: revm_interpreter::instructions::host::blockhash
at /home/impact/workspace/revm_bluealloy/crates/interpreter/src/instructions/host.rs:118:29
9: core::ops::function::Fn::call
at /rustc/b11fbfbf351b94c7eecf9e6749a4544a6d4717fa/library/core/src/ops/function.rs:79:5
10: revm_interpreter::interpreter::Interpreter::step
at /home/impact/workspace/revm_bluealloy/crates/interpreter/src/interpreter.rs:343:9
11: revm_interpreter::interpreter::Interpreter::run
at /home/impact/workspace/revm_bluealloy/crates/interpreter/src/interpreter.rs:365:18
12: revm::evm::Evm<EXT,DB>::run_the_loop
at /home/impact/workspace/revm_bluealloy/crates/revm/src/evm.rs:283:31
13: revm::evm::Evm<EXT,DB>::start_the_loop
at /home/impact/workspace/revm_bluealloy/crates/revm/src/evm.rs:246:48
14: revm::evm::Evm<EXT,DB>::transact_preverified_inner
at /home/impact/workspace/revm_bluealloy/crates/revm/src/evm.rs:392:50
15: revm::evm::Evm<EXT,DB>::transact
at /home/impact/workspace/revm_bluealloy/crates/revm/src/evm.rs:144:22
Specifically on these lines (journaled_state.rs):
// assume acc is warm
let account = self.state.get_mut(&address).unwrap();
Where address = 0x25a219378dad9b3503c8268c9ca836a52427a4fb, which looks to be added in that commit. This is specifically on Arbitrum (non-standard use case I know), but figured I'd bring it up in case it was possible to fix.
Thanks!
The text was updated successfully, but these errors were encountered:
Looks like this is only happening when using the default spec (Evm::builder()....), when forcing to Cancun, continues working fine. Sorry for the confusion
cc @onbjerg maybe we need to pre-load the account before execution?
Anyway yeah you should pin SpecId when possible since Latest will always go to the latest implemented rather than latest live (cancun on mainnet)
preloading account before execution would make it warm loaded and gas would be decremented if it is accessed. We need to ask for clarification, as this is an edge case. Maybe there will be a change in JournalState sload
Was playing around with following revm's recent updates today, and looks like this commit breaks something: 3e089f3 .
One of my tests (not all oddly enough) breaks when upgrading from the previous revision to the EIP-2395 revision addition. It might have something to do with this issue as well? #1382
Specifically crashes with the following (snipped to relevant) stack trace:
Specifically on these lines (journaled_state.rs):
Where address =
0x25a219378dad9b3503c8268c9ca836a52427a4fb
, which looks to be added in that commit. This is specifically on Arbitrum (non-standard use case I know), but figured I'd bring it up in case it was possible to fix.Thanks!
The text was updated successfully, but these errors were encountered: