(s: &str)
| 30 | } |
| 31 | |
| 32 | pub fn parse_token_amount(s: &str) -> Result<TokenAmount, String> { |
| 33 | BigInt::from_str_radix(s, 10) |
| 34 | .map_err(|e| format!("not a token amount: {e}")) |
| 35 | .map(TokenAmount::from_atto) |
| 36 | } |
| 37 | |
| 38 | pub fn parse_full_fil(s: &str) -> Result<TokenAmount, String> { |
| 39 | let f: Result<f64, _> = s.parse(); |
nothing calls this directly
no outgoing calls
no test coverage detected