This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +550
-429
lines changed Expand file tree Collapse file tree 6 files changed +550
-429
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ The owner of the source Account must be present as a signer in the `Transfer`
188
188
instruction.
189
189
190
190
An Account's owner may transfer ownership of an account to another using the
191
- ` SetOwner ` instruction.
191
+ ` SetAuthority ` instruction.
192
192
193
193
It's important to note that the ` InitializeAccount ` instruction does not require
194
194
the Solana account being initialized also be a signer. The ` InitializeAccount `
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ import {
12
12
approveRevoke ,
13
13
invalidApprove ,
14
14
failOnApproveOverspend ,
15
- setOwner ,
15
+ setAuthority ,
16
16
mintTo ,
17
17
multisig ,
18
18
burn ,
19
- failOnCloseAccount ,
19
+ closeAccount ,
20
20
nativeToken ,
21
21
} from './token-test' ;
22
22
@@ -27,6 +27,8 @@ async function main() {
27
27
await createMint ( ) ;
28
28
console . log ( 'Run test: createAccount' ) ;
29
29
await createAccount ( ) ;
30
+ console . log ( 'Run test: mintTo' ) ;
31
+ await mintTo ( ) ;
30
32
console . log ( 'Run test: transfer' ) ;
31
33
await transfer ( ) ;
32
34
console . log ( 'Run test: approveRevoke' ) ;
@@ -35,16 +37,14 @@ async function main() {
35
37
await invalidApprove ( ) ;
36
38
console . log ( 'Run test: failOnApproveOverspend' ) ;
37
39
await failOnApproveOverspend ( ) ;
38
- console . log ( 'Run test: setOwner' ) ;
39
- await setOwner ( ) ;
40
- console . log ( 'Run test: mintTo' ) ;
41
- await mintTo ( ) ;
42
- console . log ( 'Run test: multisig' ) ;
43
- await multisig ( ) ;
40
+ console . log ( 'Run test: setAuthority' ) ;
41
+ await setAuthority ( ) ;
44
42
console . log ( 'Run test: burn' ) ;
45
43
await burn ( ) ;
46
- console . log ( 'Run test: failOnCloseAccount' ) ;
47
- await failOnCloseAccount ( ) ;
44
+ console . log ( 'Run test: closeAccount' ) ;
45
+ await closeAccount ( ) ;
46
+ console . log ( 'Run test: multisig' ) ;
47
+ await multisig ( ) ;
48
48
console . log ( 'Run test: nativeToken' ) ;
49
49
await nativeToken ( ) ;
50
50
console . log ( 'Success\n' ) ;
You can’t perform that action at this time.
0 commit comments