Skip to content

Commit 3c7113b

Browse files
committed
chore: remove deprecated event format from soroban-token-sdk
1 parent 9b36319 commit 3c7113b

File tree

3 files changed

+4
-79
lines changed

3 files changed

+4
-79
lines changed

soroban-token-sdk/src/_migrating/v23_token_transfer.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
//! the exchange deposits for the token contracts, but is necessary for that.
1717
//!
1818
//! The necessary token modification is very minimal. Consider the following
19-
//! `transfer` implementation that still uses `Address` destination:
19+
//! `transfer` implementation that still uses `Address` destination. Note that
20+
//! this example will only compile pre-v26. If you are using v26 or later, you
21+
//! will need to use the updated implementation shown in the next code snippet.
2022
//!
21-
//! ```
23+
//! ```compile_fail
2224
//! use soroban_sdk::{Env, Address};
2325
//! use soroban_token_sdk::TokenUtils;
2426
//! // ... inside some token contract ...

soroban-token-sdk/src/event.rs

Lines changed: 0 additions & 71 deletions
This file was deleted.

soroban-token-sdk/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
#![cfg_attr(feature = "docs", feature(doc_cfg))]
33
pub mod _migrating;
44

5-
use crate::event::Events;
65
use crate::metadata::Metadata;
76
use soroban_sdk::Env;
87

9-
pub mod event;
108
pub mod events;
119
pub mod metadata;
1210
mod tests;
@@ -23,8 +21,4 @@ impl TokenUtils {
2321
pub fn metadata(&self) -> Metadata {
2422
Metadata::new(&self.0)
2523
}
26-
27-
pub fn events(&self) -> Events {
28-
Events::new(&self.0)
29-
}
3024
}

0 commit comments

Comments
 (0)