aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vm/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/context.go b/vm/context.go
index b48f1a657..9ce07bc4a 100644
--- a/vm/context.go
+++ b/vm/context.go
@@ -58,7 +58,7 @@ func (c *Context) GetRangeValue(x, size uint64) []byte {
x = uint64(math.Min(float64(x), float64(len(c.Code))))
y := uint64(math.Min(float64(x+size), float64(len(c.Code))))
- return ethutil.LeftPadBytes(c.Code[x:y], int(size))
+ return ethutil.RightPadBytes(c.Code[x:y], int(size))
}
func (c *Context) GetCode(x, size uint64) []byte {