Skip to content

Commit 9e5a19e

Browse files
committed
chore: improve migration doc wording
1 parent b69efea commit 9e5a19e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
//!
1818
//! The necessary token modification is very minimal. Consider the following
1919
//! `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.
20+
//! this example will only compile pre-v26 because the old event publishing
21+
//! helper used below is no longer available. If you are using v26 or later,
22+
//! use the updated implementation shown in the next code snippet.
2223
//!
2324
//! ```compile_fail
2425
//! use soroban_sdk::{Env, Address};
@@ -29,7 +30,8 @@
2930
//! from.require_auth();
3031
//! // Token-specific implementation of balance movement.
3132
//! token_impl::move_balance(&env, &from, &to, amount);
32-
//! // Publish the event.
33+
//! // Publish the event using the pre-v26 helper API.
34+
//! // In v26+, use the event type from `soroban_token_sdk::events` instead.
3335
//! TokenUtils::new(&env).events().transfer(from, to, amount);
3436
//! }
3537
//!

0 commit comments

Comments
 (0)