Helper function to check if a slice contains a value.
(slice []string, val string)
| 37 | |
| 38 | // Helper function to check if a slice contains a value. |
| 39 | func contains(slice []string, val string) bool { |
| 40 | for _, s := range slice { |
| 41 | if s == val { |
| 42 | return true |
| 43 | } |
| 44 | } |
| 45 | return false |
| 46 | } |
| 47 | |
| 48 | // parseBigInt parses a string into a *big.Int, returning an error if parsing fails. |
| 49 | // This ensures we don't silently get nil values when database returns malformed data. |
no outgoing calls