@kimafinance/kima-transaction-widget 1.3.10 → 1.3.11

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/index.cjs CHANGED
@@ -2799,7 +2799,7 @@ function useEvmAllowance() {
2799
2799
  });
2800
2800
  return await walletClient.signMessage({
2801
2801
  account: walletAddress,
2802
- message: `I approve moving ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}`
2802
+ message: `I approve the transfer of ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}.`
2803
2803
  });
2804
2804
  } catch (error) {
2805
2805
  console.error("useEvmAllowance: Error on signing message:", error);
@@ -3110,7 +3110,7 @@ function useSolanaAllowance() {
3110
3110
  return;
3111
3111
  }
3112
3112
  try {
3113
- const message = `I approve moving ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}`;
3113
+ const message = `I approve the transfer of ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}.`;
3114
3114
  const encodedMessage = new TextEncoder().encode(message);
3115
3115
  const signature = await signMessage(encodedMessage);
3116
3116
  return `0x${Buffer.from(signature).toString("hex")}`;
@@ -3692,7 +3692,7 @@ function useTronAllowance() {
3692
3692
  return;
3693
3693
  }
3694
3694
  try {
3695
- const message = `I approve moving ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}`;
3695
+ const message = `I approve the transfer of ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}.`;
3696
3696
  const signedMessage = await signMessage(message);
3697
3697
  return signedMessage;
3698
3698
  } catch (error2) {
@@ -6233,9 +6233,9 @@ var TransferWidget = ({
6233
6233
  if (error === "ApprovalNeeded" /* ApprovalNeeded */) {
6234
6234
  const sig2 = await signMessage?.({
6235
6235
  targetAddress,
6236
- targetChain: targetChain.name,
6236
+ targetChain: targetChain.shortName,
6237
6237
  originSymbol: sourceCurrency,
6238
- originChain: sourceChain.name
6238
+ originChain: sourceChain.shortName
6239
6239
  });
6240
6240
  setSignature2(sig2);
6241
6241
  return approve();
@@ -6248,9 +6248,9 @@ var TransferWidget = ({
6248
6248
  if (!sig) {
6249
6249
  sig = await signMessage?.({
6250
6250
  targetAddress,
6251
- targetChain: targetChain.name,
6251
+ targetChain: targetChain.shortName,
6252
6252
  originSymbol: sourceCurrency,
6253
- originChain: sourceChain.name
6253
+ originChain: sourceChain.shortName
6254
6254
  });
6255
6255
  }
6256
6256
  const { success, message: submitMessage } = await submitTransaction(sig);