diff --git a/zcash_client_backend/Cargo.toml b/zcash_client_backend/Cargo.toml index f324fd332..3960e1429 100644 --- a/zcash_client_backend/Cargo.toml +++ b/zcash_client_backend/Cargo.toml @@ -20,7 +20,7 @@ ff = "0.8" group = "0.8" hex = "0.4" jubjub = "0.5.1" -nom = "5.1.2" +nom = "6.1" protobuf = "2.20" rand_core = "0.5.1" subtle = "2.2.3" diff --git a/zcash_client_backend/src/zip321.rs b/zcash_client_backend/src/zip321.rs index 4f914e0b0..0e1c32b9f 100644 --- a/zcash_client_backend/src/zip321.rs +++ b/zcash_client_backend/src/zip321.rs @@ -5,7 +5,8 @@ use std::fmt; use std::str::FromStr; use nom::{ - character::complete::char, combinator::all_consuming, multi::separated_list, sequence::preceded, + character::complete::char, combinator::all_consuming, multi::separated_list0, + sequence::preceded, }; use zcash_primitives::{consensus, transaction::components::Amount}; @@ -248,7 +249,7 @@ impl TransactionRequest { // Parse the remaining parameters as an undifferentiated list let (_, xs) = all_consuming(preceded( char('?'), - separated_list(char('&'), parse::zcashparam(params)), + separated_list0(char('&'), parse::zcashparam(params)), ))(rest) .map_err(|e| e.to_string())?;