mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
add func docs
This commit is contained in:
parent
c3379da2f5
commit
fce0d3e846
1 changed files with 2 additions and 0 deletions
|
|
@ -33,6 +33,8 @@ func packBytesSlice(bytes []byte, l int) []byte {
|
|||
return append(len, common.RightPadBytes(bytes, (l+31)/32*32)...)
|
||||
}
|
||||
|
||||
// validateNum returns an error if the underlying type of t is uint and the
|
||||
// value of reflectValue is a negative big.Int
|
||||
func validateNum(t Type, reflectValue reflect.Value) error {
|
||||
if t.T == UintTy && reflectValue.Kind() == reflect.Ptr {
|
||||
val := new(big.Int).Set(reflectValue.Interface().(*big.Int))
|
||||
|
|
|
|||
Loading…
Reference in a new issue