diff --git a/Cargo.toml b/Cargo.toml index 1faa035c..b6c5ba71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,7 @@ async-std = { version = "1.6", optional = true } tokio = { version = "1.0", optional = true, features = ["full"] } tokio-stream = { version = "0.1", optional = true } tokio-util = { version = "0.6", optional = true, features = ["compat", "io"] } -soketto = { version = "0.5.0", optional = true } +soketto = { version = "0.7.0", optional = true } ## Shared (WS, HTTP) url = { version = "2.1", optional = true } ## EIP-1193 diff --git a/src/transports/ws.rs b/src/transports/ws.rs index ee29099e..7c2b7381 100644 --- a/src/transports/ws.rs +++ b/src/transports/ws.rs @@ -545,12 +545,9 @@ mod tests { let mut server = handshake::Server::new(BufReader::new(BufWriter::new(socket))); let key = { let req = server.receive_request().await.unwrap(); - req.into_key() - }; - let accept = handshake::server::Response::Accept { - key: &key, - protocol: None, + req.key() }; + let accept = handshake::server::Response::Accept { key, protocol: None }; server.send_response(&accept).await.unwrap(); let (mut sender, mut receiver) = server.into_builder().finish(); loop {