on master help sign in
remove debugging artifacts
10c3c29Liam Fitzgerald
src/lib/reticket.js−9
@@ -150,18 +150,13 @@ export async function reticketPointBetweenWallets({
150 const suggestedGasPrice = await getSuggestedGasPrice(networkType);
150 const suggestedGasPrice = await getSuggestedGasPrice(networkType);
151 const chainId = await web3.eth.net.getId();
151 const chainId = await web3.eth.net.getId();
152 const gasPrice = toWei(suggestedGasPrice.toFixed(), 'gwei');
152 const gasPrice = toWei(suggestedGasPrice.toFixed(), 'gwei');
153− console.log(suggestedGasPrice.toFixed());
154 const gasPriceBN = toBN(gasPrice);
153 const gasPriceBN = toBN(gasPrice);
155− console.log(gasPrice);
156 let inviteNonce = await web3.eth.getTransactionCount(fromWallet.address);
154 let inviteNonce = await web3.eth.getTransactionCount(fromWallet.address);
157− console.log(txs);
158 const totalCost = txs.reduce(
155 const totalCost = txs.reduce(
159 (acc, tx) => acc.add(gasPriceBN.mul(toBN(tx.gas))),
156 (acc, tx) => acc.add(gasPriceBN.mul(toBN(tx.gas))),
160 toBN(0)
157 toBN(0)
161 );
158 );
162
159
163− console.log(txs);
164−
165 let txPairs = await Promise.all(
160 let txPairs = await Promise.all(
166 txs.map(async (tx, idx) => {
161 txs.map(async (tx, idx) => {
167 const stx = await signTransaction({
162 const stx = await signTransaction({
@@ -175,9 +170,6 @@ export async function reticketPointBetweenWallets({
175 gasPrice: suggestedGasPrice.toFixed(),
170 gasPrice: suggestedGasPrice.toFixed(),
176 gasLimit: tx.gas,
171 gasLimit: tx.gas,
177 });
172 });
178− if (!stx) {
179− debugger;
180− }
181 return {
173 return {
182 raw: hexify(stx.serialize()),
174 raw: hexify(stx.serialize()),
183 signed: stx,
175 signed: stx,
@@ -209,7 +201,6 @@ export async function reticketPointBetweenWallets({
209
201
210 progress(TRANSACTION_PROGRESS.TRANSFERRING);
202 progress(TRANSACTION_PROGRESS.TRANSFERRING);
211
203
212− console.log(txPairs);
213 await sendAndAwaitAllSerial(web3, txPairs.map(p => p.signed), usedTank);
204 await sendAndAwaitAllSerial(web3, txPairs.map(p => p.signed), usedTank);
214
205
215 //
206 //