Skip to content

Commit

Permalink
lang: Remove EventData trait (#3083)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored Jul 13, 2024
1 parent f677742 commit ca4822f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The minor version will be incremented upon a breaking change and the patch versi

- syn: Remove `bpf` target support in `hash` feature ([#3078](https://github.com/coral-xyz/anchor/pull/3078)).
- client: Add `tokio` support to `RequestBuilder` with `async` feature ([#3057](https://github.com/coral-xyz/anchor/pull/3057])).
- lang: Remove `EventData` trait ([#3083](https://github.com/coral-xyz/anchor/pull/3083])).

## [0.30.1] - 2024-06-20

Expand Down
8 changes: 0 additions & 8 deletions lang/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,6 @@ pub trait Event: AnchorSerialize + AnchorDeserialize + Discriminator {
fn data(&self) -> Vec<u8>;
}

// The serialized event data to be emitted via a Solana log.
// TODO: remove this on the next major version upgrade.
#[doc(hidden)]
#[deprecated(since = "0.4.2", note = "Please use Event instead")]
pub trait EventData: AnchorSerialize + Discriminator {
fn data(&self) -> Vec<u8>;
}

/// 8 byte unique identifier for a type.
pub trait Discriminator {
const DISCRIMINATOR: [u8; 8];
Expand Down

0 comments on commit ca4822f

Please sign in to comment.