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
Branches
Tags
No related merge requests found
...@@ -118,6 +118,8 @@ func (val *Value) BigInt() *big.Int { ...@@ -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()))
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment