|
@@ -462,6 +462,9 @@ pub enum TokenInstruction<'a> {
|
|
|
/// The ui_amount of tokens to reformat.
|
|
|
ui_amount: &'a str,
|
|
|
},
|
|
|
+ // Any new variants also need to be added to program-2022 `TokenInstruction`, so that the
|
|
|
+ // latter remains a superset of this instruction set. New variants also need to be added to
|
|
|
+ // token/js/src/instructions/types.ts to maintain @solana/spl-token compatability
|
|
|
}
|
|
|
impl<'a> TokenInstruction<'a> {
|
|
|
/// Unpacks a byte buffer into a [TokenInstruction](enum.TokenInstruction.html).
|