mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-24 03:48:07 +00:00
Added big int to uint switch
This commit is contained in:
parent
490ca410c0
commit
5d57b78471
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ func (val *Value) Uint() uint64 {
|
|||
return uint64(Val)
|
||||
} else if Val, ok := val.Val.([]byte); ok {
|
||||
return ReadVarint(bytes.NewReader(Val))
|
||||
} else if Val, ok := val.Val.(*big.Int); ok {
|
||||
return Val.Uint64()
|
||||
}
|
||||
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue