@smithii_io/mixoor 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/index.js CHANGED
@@ -950,35 +950,15 @@ async function getTransferInstructionAsync(input, config) {
950
950
  ]
951
951
  });
952
952
  }
953
- if (!accounts.tokenProgram.value) {
954
- accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
955
- }
956
- if (!accounts.recipientTokenAccount.value) {
957
- accounts.recipientTokenAccount.value = await kit.getProgramDerivedAddress({
958
- programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
959
- seeds: [
960
- kit.getAddressEncoder().encode(expectAddress(accounts.recipient.value)),
961
- kit.getAddressEncoder().encode(expectAddress(accounts.tokenProgram.value)),
962
- kit.getAddressEncoder().encode(expectAddress(accounts.mint.value))
963
- ]
964
- });
965
- }
966
953
  if (!accounts.feeCollector.value) {
967
954
  accounts.feeCollector.value = "9qX97Bd8dvHAknHVjCxz4uEJcPSE3NGjjgniMVdDBu6d";
968
955
  }
969
- if (!accounts.feeCollectorTokenAccount.value) {
970
- accounts.feeCollectorTokenAccount.value = await kit.getProgramDerivedAddress({
971
- programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
972
- seeds: [
973
- kit.getAddressEncoder().encode(expectAddress(accounts.feeCollector.value)),
974
- kit.getAddressEncoder().encode(expectAddress(accounts.tokenProgram.value)),
975
- kit.getAddressEncoder().encode(expectAddress(accounts.mint.value))
976
- ]
977
- });
978
- }
979
956
  if (!accounts.systemProgram.value) {
980
957
  accounts.systemProgram.value = "11111111111111111111111111111111";
981
958
  }
959
+ if (!accounts.tokenProgram.value) {
960
+ accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
961
+ }
982
962
  if (!accounts.associatedTokenProgram.value) {
983
963
  accounts.associatedTokenProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
984
964
  }
@@ -1036,15 +1016,15 @@ function getTransferInstruction(input, config) {
1036
1016
  };
1037
1017
  const accounts = originalAccounts;
1038
1018
  const args = { ...input };
1039
- if (!accounts.tokenProgram.value) {
1040
- accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1041
- }
1042
1019
  if (!accounts.feeCollector.value) {
1043
1020
  accounts.feeCollector.value = "9qX97Bd8dvHAknHVjCxz4uEJcPSE3NGjjgniMVdDBu6d";
1044
1021
  }
1045
1022
  if (!accounts.systemProgram.value) {
1046
1023
  accounts.systemProgram.value = "11111111111111111111111111111111";
1047
1024
  }
1025
+ if (!accounts.tokenProgram.value) {
1026
+ accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1027
+ }
1048
1028
  if (!accounts.associatedTokenProgram.value) {
1049
1029
  accounts.associatedTokenProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1050
1030
  }