We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
Implementation here:
fn main() { let coin_str = "11111ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2"; let position = coin_str.find(|c: char| !c.is_ascii_digit()).expect("did not find a split position"); let (amount, denom) = coin_str.split_at(position); println!("Amount: {amount} Denom: {denom}"); }
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=464dd2573b1b7014204d9c7a9818590e
Sorry, something went wrong.
Add FromStr implementation for Coin, closes #1575
cf70538
c51affc
chipshort
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: