Tyera Eulberg 3 роки тому
батько
коміт
05c4d939e3
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      program/src/instruction.rs

+ 3 - 0
program/src/instruction.rs

@@ -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).