aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/value.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-30 05:33:18 +0800
committerobscuren <geffobscura@gmail.com>2014-07-30 05:33:18 +0800
commit6fd2401cdf792996c0183f896412831dd335377a (patch)
treee337868224aaaf024641b5465b2e2c78106c8573 /ethutil/value.go
parent6e94c024e476a0e96b81d1cdd60dbb88b723593a (diff)
downloaddexon-6fd2401cdf792996c0183f896412831dd335377a.tar
dexon-6fd2401cdf792996c0183f896412831dd335377a.tar.gz
dexon-6fd2401cdf792996c0183f896412831dd335377a.tar.bz2
dexon-6fd2401cdf792996c0183f896412831dd335377a.tar.lz
dexon-6fd2401cdf792996c0183f896412831dd335377a.tar.xz
dexon-6fd2401cdf792996c0183f896412831dd335377a.tar.zst
dexon-6fd2401cdf792996c0183f896412831dd335377a.zip
Fixed issue with var int reading.
Reading uneven byte slices were broken.
Diffstat (limited to 'ethutil/value.go')
-rw-r--r--ethutil/value.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/ethutil/value.go b/ethutil/value.go
index 635683e66..85dc44ed6 100644
--- a/ethutil/value.go
+++ b/ethutil/value.go
@@ -67,7 +67,6 @@ func (val *Value) Uint() uint64 {
return uint64(Val)
} else if Val, ok := val.Val.([]byte); ok {
return new(big.Int).SetBytes(Val).Uint64()
- //return ReadVarint(bytes.NewReader(Val))
} else if Val, ok := val.Val.(*big.Int); ok {
return Val.Uint64()
}