Skip to content
Snippets Groups Projects
Commit 5c07c5df authored by Éloïs's avatar Éloïs
Browse files

Transactions : pub fn parse_from_str for inputs, unlocks and outputs

parent 74f6ab34
Branches
Tags
1 merge request!47Resolve "Impl Serialize trait for Idty, Membership, Cert and Revoc docs and PublicKey"
......@@ -361,7 +361,7 @@ impl ToString for TransactionOutput {
}
impl TransactionOutput {
/// Parse Transaction Ouput from string.
/// Parse Transaction Output from string.
pub fn parse_from_str(source: &str) -> Result<TransactionOutput, V10DocumentParsingError> {
if let Some(caps) = OUTPUT_REGEX.captures(source) {
let amount = caps["amount"].parse().expect("fail to parse output amount");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment