@smithii_io/mixoor 0.0.15 → 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.
@@ -926,35 +926,15 @@ async function getTransferInstructionAsync(input, config) {
926
926
  ]
927
927
  });
928
928
  }
929
- if (!accounts.tokenProgram.value) {
930
- accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
931
- }
932
- if (!accounts.recipientTokenAccount.value) {
933
- accounts.recipientTokenAccount.value = await getProgramDerivedAddress({
934
- programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
935
- seeds: [
936
- getAddressEncoder().encode(expectAddress(accounts.recipient.value)),
937
- getAddressEncoder().encode(expectAddress(accounts.tokenProgram.value)),
938
- getAddressEncoder().encode(expectAddress(accounts.mint.value))
939
- ]
940
- });
941
- }
942
929
  if (!accounts.feeCollector.value) {
943
930
  accounts.feeCollector.value = "9qX97Bd8dvHAknHVjCxz4uEJcPSE3NGjjgniMVdDBu6d";
944
931
  }
945
- if (!accounts.feeCollectorTokenAccount.value) {
946
- accounts.feeCollectorTokenAccount.value = await getProgramDerivedAddress({
947
- programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
948
- seeds: [
949
- getAddressEncoder().encode(expectAddress(accounts.feeCollector.value)),
950
- getAddressEncoder().encode(expectAddress(accounts.tokenProgram.value)),
951
- getAddressEncoder().encode(expectAddress(accounts.mint.value))
952
- ]
953
- });
954
- }
955
932
  if (!accounts.systemProgram.value) {
956
933
  accounts.systemProgram.value = "11111111111111111111111111111111";
957
934
  }
935
+ if (!accounts.tokenProgram.value) {
936
+ accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
937
+ }
958
938
  if (!accounts.associatedTokenProgram.value) {
959
939
  accounts.associatedTokenProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
960
940
  }
@@ -1012,15 +992,15 @@ function getTransferInstruction(input, config) {
1012
992
  };
1013
993
  const accounts = originalAccounts;
1014
994
  const args = { ...input };
1015
- if (!accounts.tokenProgram.value) {
1016
- accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1017
- }
1018
995
  if (!accounts.feeCollector.value) {
1019
996
  accounts.feeCollector.value = "9qX97Bd8dvHAknHVjCxz4uEJcPSE3NGjjgniMVdDBu6d";
1020
997
  }
1021
998
  if (!accounts.systemProgram.value) {
1022
999
  accounts.systemProgram.value = "11111111111111111111111111111111";
1023
1000
  }
1001
+ if (!accounts.tokenProgram.value) {
1002
+ accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1003
+ }
1024
1004
  if (!accounts.associatedTokenProgram.value) {
1025
1005
  accounts.associatedTokenProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1026
1006
  }