diff --git a/core/vm/instructions.go b/core/vm/instructions.go index 44d3e81a9c..307c8c4e42 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -513,7 +513,7 @@ func opSload(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { loc := scope.Stack.peek() hash := common.Hash(loc.Bytes32()) val := evm.StateDB.GetState(scope.Contract.Address(), hash) - loc.SetBytes(val.Bytes()) + loc.SetBytes32(val.Bytes()) return nil, nil }