@rhinestone/deposit-modal 0.1.50 → 0.1.52

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.
@@ -20,7 +20,7 @@ import {
20
20
  loadSessionOwnerFromStorage,
21
21
  saveSessionOwnerToStorage,
22
22
  toEvmCaip2
23
- } from "./chunk-FKNYONM2.mjs";
23
+ } from "./chunk-MKSZIA74.mjs";
24
24
  import {
25
25
  DEFAULT_BACKEND_URL,
26
26
  DEFAULT_SIGNER_ADDRESS,
@@ -1266,9 +1266,17 @@ function WithdrawFlow({
1266
1266
  ]
1267
1267
  );
1268
1268
  const handleWithdrawComplete = useCallback2(
1269
- (txHash, destinationTxHash) => {
1270
- logFlow("withdraw:complete", { txHash, destinationTxHash });
1271
- onWithdrawComplete?.({ txHash, destinationTxHash });
1269
+ (txHash, destinationTxHash, context) => {
1270
+ logFlow("withdraw:complete", { txHash, destinationTxHash, ...context });
1271
+ onWithdrawComplete?.({
1272
+ txHash,
1273
+ destinationTxHash,
1274
+ amount: context.amount,
1275
+ sourceChain: context.sourceChain,
1276
+ sourceToken: context.sourceToken,
1277
+ targetChain: context.targetChain,
1278
+ targetToken: context.targetToken
1279
+ });
1272
1280
  },
1273
1281
  [logFlow, onWithdrawComplete]
1274
1282
  );
@@ -1404,6 +1412,7 @@ function WithdrawFlow({
1404
1412
  sourceChain: step.sourceChain,
1405
1413
  sourceToken: step.sourceToken,
1406
1414
  targetChain,
1415
+ targetToken,
1407
1416
  amount: step.amount,
1408
1417
  waitForFinalTx,
1409
1418
  service,
@@ -1422,7 +1431,7 @@ function WithdrawFlow({
1422
1431
  // src/WithdrawModal.tsx
1423
1432
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1424
1433
  var ReownWithdrawInner = lazy(
1425
- () => import("./WithdrawModalReown-AHHM3VTB.mjs").then((m) => ({
1434
+ () => import("./WithdrawModalReown-PUIM36NO.mjs").then((m) => ({
1426
1435
  default: m.WithdrawModalReown
1427
1436
  }))
1428
1437
  );