diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-10 08:13:06 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-10 08:13:06 +0800 |
commit | 0d64163fea3a266ceb71cb4c4ee5682052c9ca6c (patch) | |
tree | a0b5c8381ab482550ef4800a06d4db086d76a983 /vm | |
parent | 9007f2bbdc3b38f8f005778467157db12056c17e (diff) | |
download | go-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.go | 2 |
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 { |