diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-11 01:50:13 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-11 01:50:13 +0800 |
commit | 617804c32731c5103319e7072557f62a9ce63836 (patch) | |
tree | baca8a8f2e014892983ca45e8ec618ab54121526 /vm/context.go | |
parent | 3de51f76eea87f8e8a4b8a7277cd294529e28491 (diff) | |
parent | bbe8b186600992ada6da9e75e9976cd5a9dc0ae3 (diff) | |
download | go-tangerine-617804c32731c5103319e7072557f62a9ce63836.tar go-tangerine-617804c32731c5103319e7072557f62a9ce63836.tar.gz go-tangerine-617804c32731c5103319e7072557f62a9ce63836.tar.bz2 go-tangerine-617804c32731c5103319e7072557f62a9ce63836.tar.lz go-tangerine-617804c32731c5103319e7072557f62a9ce63836.tar.xz go-tangerine-617804c32731c5103319e7072557f62a9ce63836.tar.zst go-tangerine-617804c32731c5103319e7072557f62a9ce63836.zip |
Merge branch 'rpcfrontier' of github.com:ethereum/go-ethereum into rpcfrontier
Diffstat (limited to 'vm/context.go')
-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 { |