@kimafinance/kima-transaction-widget 1.0.7 → 1.0.8

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.
@@ -1271,6 +1271,7 @@ const WalletSelect = () => {
1271
1271
  };
1272
1272
 
1273
1273
  const version = "logger/5.7.0";
1274
+ //# sourceMappingURL=_version.js.map
1274
1275
 
1275
1276
  let _permanentCensorErrors = false;
1276
1277
  let _censorErrors = false;
@@ -1620,8 +1621,10 @@ class Logger {
1620
1621
  }
1621
1622
  Logger.errors = ErrorCode;
1622
1623
  Logger.levels = LogLevel;
1624
+ //# sourceMappingURL=index.js.map
1623
1625
 
1624
1626
  const version$1 = "bytes/5.7.0";
1627
+ //# sourceMappingURL=_version.js.map
1625
1628
 
1626
1629
  const logger = new Logger(version$1);
1627
1630
  ///////////////////////////////
@@ -1732,6 +1735,7 @@ function hexStripZeros(value) {
1732
1735
  }
1733
1736
  return "0x" + value.substring(offset);
1734
1737
  }
1738
+ //# sourceMappingURL=index.js.map
1735
1739
 
1736
1740
  const createWalletStatus = (isReady, statusMessage = '', forceNetworkSwitch, walletAddress) => ({
1737
1741
  isReady,
@@ -6251,8 +6255,7 @@ function useAllowance() {
6251
6255
  const mint = new PublicKey(tokenAddress);
6252
6256
  const toPublicKey = new PublicKey(targetAddress);
6253
6257
  const fromTokenAccount = await getOrCreateAssociatedTokenAccount(connection, publicKey, mint, publicKey, signTransaction);
6254
- const toTokenAccount = await getOrCreateAssociatedTokenAccount(connection, publicKey, mint, toPublicKey, signTransaction);
6255
- const transaction = new Transaction().add(createApproveTransferInstruction(fromTokenAccount.address, toTokenAccount.address, publicKey, (amount + serviceFee) * Math.pow(10, COIN_LIST['USDK'].decimals), [], TOKEN_PROGRAM_ID));
6258
+ const transaction = new Transaction().add(createApproveTransferInstruction(fromTokenAccount.address, toPublicKey, publicKey, (amount + serviceFee) * Math.pow(10, COIN_LIST['USDK'].decimals), [], TOKEN_PROGRAM_ID));
6256
6259
  const blockHash = await connection.getLatestBlockhash();
6257
6260
  transaction.feePayer = publicKey;
6258
6261
  transaction.recentBlockhash = await blockHash.blockhash;