@@ -97,12 +97,23 @@ export const useReticketL2Spawn = () => {
99 // instead, set spawn proxy on L2
99 // instead, set spawn proxy on L2
100+ // In most TX sending cases, we would use the fromWallet to sign and send
101+ // the TX. However, because we are transferring this point during the
102+ // reticket, we will instead sign the final set spawn proxy TX with the
103+ // receiving wallet's private key.
105+ // `registerProxyAddress` expects a toWallet object shaped like a
106+ // BridgeWallet with `address` and `privateKey` properties.
107+ const toWalletStub = {
108+ address: toWallet.ownership.keys.address,
109+ privateKey: Buffer.from(toWallet.ownership.keys.private, 'hex'),
100 const proxy = 'own';
111 const proxy = 'own';
101 const nonce = await api.getNonce({ ship: point, proxy });
112 const nonce = await api.getNonce({ ship: point, proxy });
103 await registerProxyAddress(
114 await registerProxyAddress(
105− fromWallet,
116+ toWalletStub,