Merge pull request #185 from TheBlueMatt/2018-09-ser-rework
[rust-lightning] / fuzz / fuzz_targets / msg_targets / msg_target_template.txt
index 599a4f7225b08534adf0471babe8bf459489217d..50e43373899bd17cc558a2c5a16b6942baa9b76d 100644 (file)
@@ -6,14 +6,13 @@ extern crate lightning;
 use lightning::ln::msgs;
 use lightning::util::reset_rng_state;
 
-use lightning::ln::msgs::{MsgEncodable, MsgDecodable};
-
 mod utils;
+use utils::VecWriter;
 
 #[inline]
 pub fn do_test(data: &[u8]) {
        reset_rng_state();
-       test_msg!(msgs::MSG_TARGET, data);
+       TEST_MSG!(msgs::MSG_TARGET, dataEXTRA_ARGS);
 }
 
 #[cfg(feature = "afl")]