@@ -72,9 +72,6 @@ fn keypair_clone(kp: &Keypair) -> Keypair {
72
72
Keypair :: from_bytes ( & kp. to_bytes ( ) ) . expect ( "failed to copy keypair" )
73
73
}
74
74
75
- // TODO unignore once spl-token-2022 becomes spl-token, and is included in
76
- // ProgramTest by default
77
- #[ ignore]
78
75
#[ tokio:: test]
79
76
async fn associated_token_account ( ) {
80
77
let TestContext { token, alice, .. } = TestContext :: new ( ) . await ;
@@ -109,9 +106,6 @@ async fn associated_token_account() {
109
106
) ;
110
107
}
111
108
112
- // TODO unignore once spl-token-2022 becomes spl-token, and is included in
113
- // ProgramTest by default
114
- #[ ignore]
115
109
#[ tokio:: test]
116
110
async fn get_or_create_associated_token_account ( ) {
117
111
let TestContext { token, alice, .. } = TestContext :: new ( ) . await ;
@@ -135,9 +129,6 @@ async fn get_or_create_associated_token_account() {
135
129
) ;
136
130
}
137
131
138
- // TODO unignore once spl-token-2022 becomes spl-token, and is included in
139
- // ProgramTest by default
140
- #[ ignore]
141
132
#[ tokio:: test]
142
133
async fn set_authority ( ) {
143
134
let TestContext {
@@ -148,11 +139,12 @@ async fn set_authority() {
148
139
..
149
140
} = TestContext :: new ( ) . await ;
150
141
142
+ let alice_vault = Keypair :: new ( ) ;
151
143
token
152
- . create_associated_token_account ( & alice. pubkey ( ) )
144
+ . create_auxiliary_token_account ( & alice_vault , & alice. pubkey ( ) )
153
145
. await
154
- . expect ( "failed to create associated token account" ) ;
155
- let alice_vault = token . get_associated_token_address ( & alice . pubkey ( ) ) ;
146
+ . expect ( "failed to create token account" ) ;
147
+ let alice_vault = alice_vault . pubkey ( ) ;
156
148
157
149
token
158
150
. mint_to (
@@ -215,9 +207,6 @@ async fn set_authority() {
215
207
) ;
216
208
}
217
209
218
- // TODO unignore once spl-token-2022 becomes spl-token, and is included in
219
- // ProgramTest by default
220
- #[ ignore]
221
210
#[ tokio:: test]
222
211
async fn mint_to ( ) {
223
212
let TestContext {
@@ -256,9 +245,6 @@ async fn mint_to() {
256
245
) ;
257
246
}
258
247
259
- // TODO unignore once spl-token-2022 becomes spl-token, and is included in
260
- // ProgramTest by default
261
- #[ ignore]
262
248
#[ tokio:: test]
263
249
async fn transfer ( ) {
264
250
let TestContext {
0 commit comments