This commit is contained in:
Jack Grigg 2021-01-26 23:27:23 +00:00
parent 5242718b8f
commit 5431e1ef6b
2 changed files with 4 additions and 3 deletions

View File

@ -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"

View File

@ -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())?;