core: undo unnecessary change

This commit is contained in:
Marius van der Wijden 2026-04-08 15:27:59 +02:00
parent 96f0b19c51
commit 3b989f1e25

View file

@ -516,6 +516,9 @@ func opSload(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
}
func opSstore(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
if evm.readOnly {
return nil, ErrWriteProtection
}
loc := scope.Stack.pop()
val := scope.Stack.pop()
evm.StateDB.SetState(scope.Contract.Address(), loc.Bytes32(), val.Bytes32())