mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 11:36:37 +00:00
Guard for nil *big.Int
This commit is contained in:
parent
585aec127c
commit
2efb89d544
1 changed files with 5 additions and 1 deletions
|
|
@ -83,7 +83,11 @@ func newHexData(input interface{}) *hexdata {
|
||||||
d.data = input.Bytes()
|
d.data = input.Bytes()
|
||||||
}
|
}
|
||||||
case *big.Int:
|
case *big.Int:
|
||||||
d.data = input.Bytes()
|
if input == nil {
|
||||||
|
d.isNil = true
|
||||||
|
} else {
|
||||||
|
d.data = input.Bytes()
|
||||||
|
}
|
||||||
case int64:
|
case int64:
|
||||||
d.data = big.NewInt(input).Bytes()
|
d.data = big.NewInt(input).Bytes()
|
||||||
case uint64:
|
case uint64:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue