@@ -99,8 +99,6 @@ export async function reticketPointBetweenWallets({
99 const gotFunding = () => onUpdate({ type: 'gotFunding' });
99 const gotFunding = () => onUpdate({ type: 'gotFunding' });
100 const progress = state => onUpdate({ type: 'progress', state });
100 const progress = state => onUpdate({ type: 'progress', state });
102− const inviteAddress = fromWallet.address;
105 // generate transactions
103 // generate transactions
@@ -117,7 +115,7 @@ export async function reticketPointBetweenWallets({
117 const transferTmpTx = azimuth.ecliptic.transferPoint(
115 const transferTmpTx = azimuth.ecliptic.transferPoint(
118 contracts,
116 contracts,
120− inviteAddress,
118+ fromWallet.address,
123 transferTmpTx.gas = GAS_LIMITS.TRANSFER;
121 transferTmpTx.gas = GAS_LIMITS.TRANSFER;
@@ -201,9 +199,9 @@ export async function reticketPointBetweenWallets({
201 progress(TRANSACTION_STATES.SIGNING);
199 progress(TRANSACTION_STATES.SIGNING);
203 let totalCost = 0;
201 let totalCost = 0;
204− let inviteNonce = await web3.eth.getTransactionCount(inviteAddress);
202+ let inviteNonce = await web3.eth.getTransactionCount(fromWallet.address);
205 txs = txs.map(tx => {
203 txs = txs.map(tx => {
206− tx.from = inviteAddress;
204+ tx.from = fromWallet.address;
207 tx.nonce = inviteNonce++;
205 tx.nonce = inviteNonce++;
208 tx.gasPrice = 20000000000; //NOTE we pay the premium for faster ux
206 tx.gasPrice = 20000000000; //NOTE we pay the premium for faster ux
209 totalCost = totalCost + tx.gasPrice * tx.gas;
207 totalCost = totalCost + tx.gasPrice * tx.gas;
@@ -228,7 +226,7 @@ export async function reticketPointBetweenWallets({
228 const usedTank = await tank.ensureFundsFor(
226 const usedTank = await tank.ensureFundsFor(
231− inviteAddress,
229+ fromWallet.address,
232 totalCost,
230 totalCost,
233 txPairs.map(p => p.raw),
231 txPairs.map(p => p.raw),
234 askForFunding,
232 askForFunding,
@@ -254,7 +252,7 @@ export async function reticketPointBetweenWallets({
254 progress(TRANSACTION_STATES.CLEANING);
252 progress(TRANSACTION_STATES.CLEANING);
256 // if non-trivial eth left in invite wallet, transfer to new ownership
254 // if non-trivial eth left in invite wallet, transfer to new ownership
257− let balance = await web3.eth.getBalance(inviteAddress);
255+ let balance = await web3.eth.getBalance(fromWallet.address);
258 const gasPrice = 20000000000;
256 const gasPrice = 20000000000;
259 const gasLimit = 21000;
257 const gasLimit = 21000;
260 const sendEthCost = gasPrice * gasLimit;
258 const sendEthCost = gasPrice * gasLimit;