forked from cerc-io/plugeth
Added big int to uint switch
This commit is contained in:
parent
490ca410c0
commit
5d57b78471
@ -68,6 +68,8 @@ func (val *Value) Uint() uint64 {
|
|||||||
return uint64(Val)
|
return uint64(Val)
|
||||||
} else if Val, ok := val.Val.([]byte); ok {
|
} else if Val, ok := val.Val.([]byte); ok {
|
||||||
return ReadVarint(bytes.NewReader(Val))
|
return ReadVarint(bytes.NewReader(Val))
|
||||||
|
} else if Val, ok := val.Val.(*big.Int); ok {
|
||||||
|
return Val.Uint64()
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user