From 886dcf1c7867ab60d661096f9bace9367dea1742 Mon Sep 17 00:00:00 2001 From: acheron Date: Sun, 16 Jul 2023 12:51:19 +0200 Subject: [PATCH 1/2] Fix `anchor-client` compilation error when using Solana `1.14` --- client/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/lib.rs b/client/src/lib.rs index 2b8e52fb40..6f5e90a4a9 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -279,9 +279,10 @@ impl + Clone> Program { client.logs_subscribe(filter, config).await?; tx.send(unsubscribe).map_err(|e| { - ClientError::SolanaClientPubsubError(PubsubClientError::UnexpectedMessageError( - e.to_string(), - )) + ClientError::SolanaClientPubsubError(PubsubClientError::RequestFailed { + message: "Unsubscribe failed".to_string(), + reason: e.to_string(), + }) })?; while let Some(logs) = notifications.next().await { From aae20c837debcbe00cfa73ab1326f097257aea59 Mon Sep 17 00:00:00 2001 From: acheron Date: Sun, 16 Jul 2023 13:01:44 +0200 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a07064dbb0..d630cd899f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ The minor version will be incremented upon a breaking change and the patch versi - ts: Packages no longer depend on `assert` ([#2535](https://github.com/coral-xyz/anchor/pull/2535)). - lang: Support for `const` in the `InitSpace` macro ([#2555](https://github.com/coral-xyz/anchor/pull/2555)). - cli: Support workspace inheritence ([#2570](https://github.com/coral-xyz/anchor/pull/2570)). +- client: Compile with Solana `1.14`([#2572](https://github.com/coral-xyz/anchor/pull/2572)). ### Breaking