@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.js CHANGED
@@ -2823,7 +2823,7 @@ function useEvmAllowance() {
2823
2823
  });
2824
2824
  return await walletClient.signMessage({
2825
2825
  account: walletAddress,
2826
- message: `I approve moving ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}`
2826
+ message: `I approve the transfer of ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}.`
2827
2827
  });
2828
2828
  } catch (error) {
2829
2829
  console.error("useEvmAllowance: Error on signing message:", error);
@@ -3148,7 +3148,7 @@ function useSolanaAllowance() {
3148
3148
  return;
3149
3149
  }
3150
3150
  try {
3151
- const message = `I approve moving ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}`;
3151
+ const message = `I approve the transfer of ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}.`;
3152
3152
  const encodedMessage = new TextEncoder().encode(message);
3153
3153
  const signature = await signMessage(encodedMessage);
3154
3154
  return `0x${Buffer.from(signature).toString("hex")}`;
@@ -3736,7 +3736,7 @@ function useTronAllowance() {
3736
3736
  return;
3737
3737
  }
3738
3738
  try {
3739
- const message = `I approve moving ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}`;
3739
+ const message = `I approve the transfer of ${allowanceNumber} ${data.originSymbol} from ${data.originChain} to ${data.targetAddress} on ${data.targetChain}.`;
3740
3740
  const signedMessage = await signMessage(message);
3741
3741
  return signedMessage;
3742
3742
  } catch (error2) {
@@ -6277,9 +6277,9 @@ var TransferWidget = ({
6277
6277
  if (error === "ApprovalNeeded" /* ApprovalNeeded */) {
6278
6278
  const sig2 = await signMessage?.({
6279
6279
  targetAddress,
6280
- targetChain: targetChain.name,
6280
+ targetChain: targetChain.shortName,
6281
6281
  originSymbol: sourceCurrency,
6282
- originChain: sourceChain.name
6282
+ originChain: sourceChain.shortName
6283
6283
  });
6284
6284
  setSignature2(sig2);
6285
6285
  return approve();
@@ -6292,9 +6292,9 @@ var TransferWidget = ({
6292
6292
  if (!sig) {
6293
6293
  sig = await signMessage?.({
6294
6294
  targetAddress,
6295
- targetChain: targetChain.name,
6295
+ targetChain: targetChain.shortName,
6296
6296
  originSymbol: sourceCurrency,
6297
- originChain: sourceChain.name
6297
+ originChain: sourceChain.shortName
6298
6298
  });
6299
6299
  }
6300
6300
  const { success, message: submitMessage } = await submitTransaction(sig);