Selaa lähdekoodia

spl: Fix compilation with `shmem` feature enabled (#2722)

acheron 1 vuosi sitten
vanhempi
sitoutus
8bf7f251ad
2 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 1 0
      CHANGELOG.md
  2. 1 1
      spl/src/shmem.rs

+ 1 - 0
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
 

+ 1 - 1
spl/src/shmem.rs

@@ -1,13 +1,13 @@
 //! 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;
 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.