mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
BigInt accept string
This commit is contained in:
parent
80261c803a
commit
151f9c7f82
@ -118,6 +118,8 @@ func (val *Value) BigInt() *big.Int {
|
|||||||
return b
|
return b
|
||||||
} else if a, ok := val.Val.(*big.Int); ok {
|
} else if a, ok := val.Val.(*big.Int); ok {
|
||||||
return a
|
return a
|
||||||
|
} else if a, ok := val.Val.(string); ok {
|
||||||
|
return Big(a)
|
||||||
} else {
|
} else {
|
||||||
return big.NewInt(int64(val.Uint()))
|
return big.NewInt(int64(val.Uint()))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user