You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -135,23 +137,34 @@ impl std::error::Error for Error {
135
137
}
136
138
137
139
#[cfg(test)]
138
-
pub(crate)mod test {
140
+
mod test {
139
141
use bitcoin::Amount;
140
142
141
143
usesuper::*;
144
+
usecrate::receive::optional_parameters::Params;
145
+
usecrate::Version;
142
146
143
147
#[test]
144
148
fntest_parse_params(){
145
149
use bitcoin::FeeRate;
146
150
147
151
let pairs = url::form_urlencoded::parse(b"maxadditionalfeecontribution=182&additionalfeeoutputindex=0&minfeerate=1&disableoutputsubstitution=true&optimisticmerge=true");
148
-
let params =
149
-
Params::from_query_pairs(pairs,&[1]).expect("Could not parse params from query pairs");
150
-
assert_eq!(params.v,1);
152
+
let params =Params::from_query_pairs(pairs,&[Version::One])
153
+
.expect("Could not parse params from query pairs");
0 commit comments