Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 3691b14

Browse files
jstarrymvines
authored andcommitted
Update token js bindings
1 parent aa1489d commit 3691b14

File tree

6 files changed

+550
-429
lines changed

6 files changed

+550
-429
lines changed

docs/src/token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ The owner of the source Account must be present as a signer in the `Transfer`
188188
instruction.
189189

190190
An Account's owner may transfer ownership of an account to another using the
191-
`SetOwner` instruction.
191+
`SetAuthority` instruction.
192192

193193
It's important to note that the `InitializeAccount` instruction does not require
194194
the Solana account being initialized also be a signer. The `InitializeAccount`

token/js/cli/main.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import {
1212
approveRevoke,
1313
invalidApprove,
1414
failOnApproveOverspend,
15-
setOwner,
15+
setAuthority,
1616
mintTo,
1717
multisig,
1818
burn,
19-
failOnCloseAccount,
19+
closeAccount,
2020
nativeToken,
2121
} from './token-test';
2222

@@ -27,6 +27,8 @@ async function main() {
2727
await createMint();
2828
console.log('Run test: createAccount');
2929
await createAccount();
30+
console.log('Run test: mintTo');
31+
await mintTo();
3032
console.log('Run test: transfer');
3133
await transfer();
3234
console.log('Run test: approveRevoke');
@@ -35,16 +37,14 @@ async function main() {
3537
await invalidApprove();
3638
console.log('Run test: failOnApproveOverspend');
3739
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();
4442
console.log('Run test: burn');
4543
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();
4848
console.log('Run test: nativeToken');
4949
await nativeToken();
5050
console.log('Success\n');

0 commit comments

Comments
 (0)