Add CLI commands for nonces (#7329)

automerge
This commit is contained in:
Jack May
2019-12-10 00:24:44 -08:00
committed by Grimes
parent 19ecce1e32
commit a03062af4f
6 changed files with 707 additions and 0 deletions

View File

@ -118,3 +118,10 @@ pub fn is_valid_percentage(percentage: String) -> Result<(), String> {
}
})
}
pub fn is_amount(amount: String) -> Result<(), String> {
amount
.parse::<u64>()
.map(|_| ())
.map_err(|e| format!("{:?}", e))
}