From 0751bf97a03aaa0f89691bda9e19b7cfcb181ed0 Mon Sep 17 00:00:00 2001 From: acheron Date: Fri, 8 Dec 2023 01:14:19 +0100 Subject: [PATCH 1/3] spl: Fix compilation with `shmem` feature enabled --- spl/src/shmem.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/spl/src/shmem.rs b/spl/src/shmem.rs index 450c6806fb..2781bb12bf 100644 --- a/spl/src/shmem.rs +++ b/spl/src/shmem.rs @@ -8,6 +8,7 @@ use solana_program::declare_id; use solana_program::entrypoint::ProgramResult; use solana_program::instruction::{AccountMeta, Instruction}; use solana_program::program; +use solana_program::pubkey::Pubkey; // TODO: update this once the final shared memory program gets released. // shmem4EWT2sPdVGvTZCzXXRAURL9G5vpPxNwSeKhHUL. From d2ab69d0ed528d37ff71610b0a87938450f220d2 Mon Sep 17 00:00:00 2001 From: acheron Date: Fri, 8 Dec 2023 01:14:49 +0100 Subject: [PATCH 2/3] Remove unused `anchor_lang::ToAccountInfo` import --- spl/src/shmem.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/spl/src/shmem.rs b/spl/src/shmem.rs index 2781bb12bf..81a9f15869 100644 --- a/spl/src/shmem.rs +++ b/spl/src/shmem.rs @@ -1,7 +1,6 @@ //! CPI API for interacting with the SPL shared memory //! [program](https://github.com/solana-labs/solana-program-library/tree/master/shared-memory). -use anchor_lang::ToAccountInfo; use anchor_lang::{context::CpiContext, Accounts}; use solana_program::account_info::AccountInfo; use solana_program::declare_id; From 3a33247c9e7eae1f6a83e812572bec38f9d57a7d Mon Sep 17 00:00:00 2001 From: acheron Date: Fri, 8 Dec 2023 14:56:00 +0100 Subject: [PATCH 3/3] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aabbf40ed9..b550d14a92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ The minor version will be incremented upon a breaking change and the patch versi - syn: Fix IDL constant seeds parsing ([#2699](https://github.com/coral-xyz/anchor/pull/2699)). - cli: Display errors if toolchain override restoration fails ([#2700](https://github.com/coral-xyz/anchor/pull/2700)). - cli: Fix commit based `anchor_version` override ([#2704](https://github.com/coral-xyz/anchor/pull/2704)). +- spl: Fix compilation with `shmem` feature enabled ([#2722](https://github.com/coral-xyz/anchor/pull/2722)). ### Breaking