@@ -26,7 +26,6 @@ import { RestartButton, ForwardButton } from 'components/Buttons';
2626import WarningBox from 'components/WarningBox';
2727import LoadingBar from 'components/LoadingBar';
2828import NeedFundsNotice from 'components/NeedFundsNotice';
29−import { debugLog } from 'lib/utils/debug';
3029import { ReticketProgressCallback } from 'lib/types/L2Transaction';
3130
3231const labelForProgress = (progress: number) => {
@@ -100,8 +99,6 @@ export default function ResetExecute({
10099 setWalletType(WALLET_TYPES.TICKET);
101100 setUrbitWallet(Just(newWallet.value.wallet));
102101 // (implicit) pointCursor stays the same
103− // TODO: do we need to update the point?
104− // await getAndUpdatePoint(point);
105102 // redirect to point
106103 popTo(names.POINT);
107104 }, [
@@ -154,7 +151,6 @@ export default function ResetExecute({
154151 try {
155152 // if L1 point with migrated spawn proxy (dominion = 'spawn')
156153 if (l2point.dominion === POINT_DOMINIONS.SPAWN) {
157− debugLog('reticketing L1 point with dominion spawn...');
158154 await performL2SpawnReticket({
159155 fromWallet: need.wallet(wallet),
160156 fromWalletType: walletType,
@@ -170,10 +166,8 @@ export default function ResetExecute({
170166 txnSigner,
171167 txnSender,
172168 });
173− debugLog('done');
174169 // If L2 point
175170 } else if (isL2) {
176− debugLog('reticketing L2 point ...');
177171 await performL2Reticket({
178172 point,
179173 to: newWallet.value.wallet.ownership.keys.address,
@@ -182,24 +176,23 @@ export default function ResetExecute({
182176 fromWallet: need.wallet(wallet),
183177 onUpdate: handleUpdate,
184178 });
185− debugLog('done');
186179 // Fallback to L1 point flow
187− } else debugLog('reticketing L1 point ...');
188− await reticketPointBetweenWallets({
189− fromWallet: need.wallet(wallet),
190− fromWalletType: walletType,
191− fromWalletHdPath: walletHdPath,
192− toWallet: newWallet.value.wallet,
193− point: point,
194− web3: need.web3(web3),
195− contracts: need.contracts(contracts),
196− networkType,
197− onUpdate: handleUpdate,
198− nextRevision: networkRevision + 1,
199− txnSigner,
200− txnSender,
201− });
202− debugLog('done');
180+ } else {
181+ await reticketPointBetweenWallets({
182+ fromWallet: need.wallet(wallet),
183+ fromWalletType: walletType,
184+ fromWalletHdPath: walletHdPath,
185+ toWallet: newWallet.value.wallet,
186+ point: point,
187+ web3: need.web3(web3),
188+ contracts: need.contracts(contracts),
189+ networkType,
190+ onUpdate: handleUpdate,
191+ nextRevision: networkRevision + 1,
192+ txnSigner,
193+ txnSender,
194+ });
195+ }
203196 } catch (err) {
204197 console.error(err);
205198 setGeneralError(err);