File tree Expand file tree Collapse file tree 3 files changed +4
-79
lines changed
Expand file tree Collapse file tree 3 files changed +4
-79
lines changed Original file line number Diff line number Diff line change 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 ...
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22#![ cfg_attr( feature = "docs" , feature( doc_cfg) ) ]
33pub mod _migrating;
44
5- use crate :: event:: Events ;
65use crate :: metadata:: Metadata ;
76use soroban_sdk:: Env ;
87
9- pub mod event;
108pub mod events;
119pub mod metadata;
1210mod 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}
You can’t perform that action at this time.
0 commit comments