nom 6.1
This commit is contained in:
parent
5242718b8f
commit
5431e1ef6b
|
@ -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"
|
||||
|
|
|
@ -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())?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue