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

Commit d505f2a

Browse files
author
Tyera Eulberg
authored
Add comment (#2954)
1 parent c3fda0d commit d505f2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

token/program/src/instruction.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,9 @@ pub enum TokenInstruction<'a> {
462462
/// The ui_amount of tokens to reformat.
463463
ui_amount: &'a str,
464464
},
465+
// Any new variants also need to be added to program-2022 `TokenInstruction`, so that the
466+
// latter remains a superset of this instruction set. New variants also need to be added to
467+
// token/js/src/instructions/types.ts to maintain @solana/spl-token compatability
465468
}
466469
impl<'a> TokenInstruction<'a> {
467470
/// Unpacks a byte buffer into a [TokenInstruction](enum.TokenInstruction.html).

0 commit comments

Comments
 (0)