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
pubfnmodify_spec_id(&mutself,spec_id:SpecId){ifself.cfg.spec_id == spec_id {return;}let registers = core::mem::take(&mutself.registers);// register for optimism is added as a register, so we need to create mainnet handler here.letmut handler = Handler::mainnet_with_spec(spec_id);// apply all registers to default handeler and raw mainnet instruction table.for register in registers {
handler.append_handler_register(register)}
handler.cfg = self.cfg();*self = handler;}
Although the handler's behavior is updated, the cfg is still the old one with old SpecID.
The text was updated successfully, but these errors were encountered:
publicqi
changed the title
SpecID not updated when
SpecID not updated when modify_spec_id
Feb 16, 2024
publicqi
added a commit
to publicqi/revm
that referenced
this issue
Feb 16, 2024
https://github.com/bluealloy/revm/blob/main/crates/revm/src/handler.rs#L185-L199
Although the handler's behavior is updated, the cfg is still the old one with old SpecID.
The text was updated successfully, but these errors were encountered: