good morning!!!!

Skip to content
Snippets Groups Projects
Commit 151f9c7f authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

BigInt accept string

parent 80261c80
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,8 @@ func (val *Value) BigInt() *big.Int {
return b
} else if a, ok := val.Val.(*big.Int); ok {
return a
} else if a, ok := val.Val.(string); ok {
return Big(a)
} else {
return big.NewInt(int64(val.Uint()))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment