aboutsummaryrefslogtreecommitdiffstats
path: root/vm/context.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-10 19:39:59 +0800
committerobscuren <geffobscura@gmail.com>2015-03-10 19:39:59 +0800
commit53f8f297449e2d53154a4ee7f71662d7c300ce77 (patch)
tree06ecea60f439be55b758b52ec318c90e01a42b5c /vm/context.go
parenta7538d0020d3a51ab3b25997b3c4f01db87d4c7a (diff)
parent0542df941f57a75fa7b699089db1d9ae40e4ff71 (diff)
downloaddexon-53f8f297449e2d53154a4ee7f71662d7c300ce77.tar
dexon-53f8f297449e2d53154a4ee7f71662d7c300ce77.tar.gz
dexon-53f8f297449e2d53154a4ee7f71662d7c300ce77.tar.bz2
dexon-53f8f297449e2d53154a4ee7f71662d7c300ce77.tar.lz
dexon-53f8f297449e2d53154a4ee7f71662d7c300ce77.tar.xz
dexon-53f8f297449e2d53154a4ee7f71662d7c300ce77.tar.zst
dexon-53f8f297449e2d53154a4ee7f71662d7c300ce77.zip
Merge branch 'develop' into rpcfrontier
Diffstat (limited to 'vm/context.go')
-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 {