@talismn/balances 0.0.0-pr2091-20250729024651 → 0.0.0-pr2091-20250729074348

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.
@@ -1966,7 +1966,7 @@ const getTransferCallData$6 = async ({
1966
1966
  const toTokenAccount = await splToken.getAssociatedTokenAddress(mint, toWallet);
1967
1967
 
1968
1968
  // Create the target token account if it doesn't exist
1969
- if (!(await getAccountExists(connection, toWallet))) {
1969
+ if (!(await getAccountExists(connection, toTokenAccount))) {
1970
1970
  instructions.push(splToken.createAssociatedTokenAccountInstruction(fromWallet,
1971
1971
  // funder
1972
1972
  toTokenAccount, toWallet, mint));
@@ -1966,7 +1966,7 @@ const getTransferCallData$6 = async ({
1966
1966
  const toTokenAccount = await splToken.getAssociatedTokenAddress(mint, toWallet);
1967
1967
 
1968
1968
  // Create the target token account if it doesn't exist
1969
- if (!(await getAccountExists(connection, toWallet))) {
1969
+ if (!(await getAccountExists(connection, toTokenAccount))) {
1970
1970
  instructions.push(splToken.createAssociatedTokenAccountInstruction(fromWallet,
1971
1971
  // funder
1972
1972
  toTokenAccount, toWallet, mint));
@@ -1957,7 +1957,7 @@ const getTransferCallData$6 = async ({
1957
1957
  const toTokenAccount = await getAssociatedTokenAddress(mint, toWallet);
1958
1958
 
1959
1959
  // Create the target token account if it doesn't exist
1960
- if (!(await getAccountExists(connection, toWallet))) {
1960
+ if (!(await getAccountExists(connection, toTokenAccount))) {
1961
1961
  instructions.push(createAssociatedTokenAccountInstruction(fromWallet,
1962
1962
  // funder
1963
1963
  toTokenAccount, toWallet, mint));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/balances",
3
- "version": "0.0.0-pr2091-20250729024651",
3
+ "version": "0.0.0-pr2091-20250729074348",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",
@@ -38,14 +38,14 @@
38
38
  "scale-ts": "^1.6.1",
39
39
  "viem": "^2.27.3",
40
40
  "zod": "^3.25.62",
41
- "@talismn/chaindata-provider": "0.0.0-pr2091-20250729024651",
42
- "@talismn/chain-connectors": "0.0.0-pr2091-20250729024651",
43
- "@talismn/sapi": "0.0.0-pr2091-20250729024651",
41
+ "@talismn/chain-connectors": "0.0.0-pr2091-20250729074348",
42
+ "@talismn/crypto": "0.0.0-pr2091-20250729074348",
43
+ "@talismn/chaindata-provider": "0.0.0-pr2091-20250729074348",
44
+ "@talismn/sapi": "0.0.0-pr2091-20250729074348",
44
45
  "@talismn/scale": "0.2.0",
45
- "@talismn/solana": "0.0.0-pr2091-20250729024651",
46
- "@talismn/token-rates": "0.0.0-pr2091-20250729024651",
47
- "@talismn/crypto": "0.0.0-pr2091-20250729024651",
48
- "@talismn/util": "0.0.0-pr2091-20250729024651"
46
+ "@talismn/solana": "0.0.0-pr2091-20250729074348",
47
+ "@talismn/token-rates": "0.0.0-pr2091-20250729074348",
48
+ "@talismn/util": "0.0.0-pr2091-20250729074348"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@polkadot/api-contract": "16.1.2",