aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-10 08:13:06 +0800
committerobscuren <geffobscura@gmail.com>2015-03-10 08:13:06 +0800
commit0d64163fea3a266ceb71cb4c4ee5682052c9ca6c (patch)
treea0b5c8381ab482550ef4800a06d4db086d76a983 /vm
parent9007f2bbdc3b38f8f005778467157db12056c17e (diff)
downloadgo-tangerine-0d64163fea3a266ceb71cb4c4ee5682052c9ca6c.tar.gz
go-tangerine-0d64163fea3a266ceb71cb4c4ee5682052c9ca6c.tar.zst
go-tangerine-0d64163fea3a266ceb71cb4c4ee5682052c9ca6c.zip
Right pad zeros. Closes #446
Diffstat (limited to 'vm')
-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 {