good morning!!!!

Skip to content
Snippets Groups Projects
Commit 0d64163f authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Right pad zeros. Closes #446

parent 9007f2bb
Branches
Tags
No related merge requests found
...@@ -58,7 +58,7 @@ func (c *Context) GetRangeValue(x, size uint64) []byte { ...@@ -58,7 +58,7 @@ func (c *Context) GetRangeValue(x, size uint64) []byte {
x = uint64(math.Min(float64(x), float64(len(c.Code)))) x = uint64(math.Min(float64(x), float64(len(c.Code))))
y := uint64(math.Min(float64(x+size), 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 { func (c *Context) GetCode(x, size uint64) []byte {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment