nym-sphinx-wasm: ditched old code

This commit is contained in:
Dave Hrycyszyn
2020-04-16 17:12:41 +01:00
parent 060d0b4f02
commit 044b12cdf1
-1
View File
@@ -69,7 +69,6 @@ pub fn create_sphinx_packet(rout: String, msg: &str, destination: &str) -> Vec<u
let dest_bytes = DestinationAddressBytes::from_base58_string(destination.to_owned());
let dest = Destination::new(dest_bytes, [4u8; IDENTIFIER_LENGTH]);
// let mut message = msg.as_bytes().to_vec();
let mut message = nymsphinx::chunking::split_and_prepare_payloads(&msg.as_bytes());
let sphinx_packet =
match SphinxPacket::new(message.pop().unwrap(), &route, &dest, &delays).unwrap() {