on master help sign in
remove debugging artifacts
commit10c3c290ee4706d490e682258205c90ffda3db38 authorLiam Fitzgerald <liam@urizen.co> dateTue 14 Jan 2020, 14:40 (7 years ago) parent350b308
1 file changed−9
src/lib/reticket.js−9
src/lib/reticket.js−9
@@ -150,18 +150,13 @@ export async function reticketPointBetweenWallets({
150150 const suggestedGasPrice = await getSuggestedGasPrice(networkType);
151151 const chainId = await web3.eth.net.getId();
152152 const gasPrice = toWei(suggestedGasPrice.toFixed(), 'gwei');
153− console.log(suggestedGasPrice.toFixed());
154153 const gasPriceBN = toBN(gasPrice);
155− console.log(gasPrice);
156154 let inviteNonce = await web3.eth.getTransactionCount(fromWallet.address);
157− console.log(txs);
158155 const totalCost = txs.reduce(
159156 (acc, tx) => acc.add(gasPriceBN.mul(toBN(tx.gas))),
160157 toBN(0)
161158 );
162159
163− console.log(txs);
164−
165160 let txPairs = await Promise.all(
166161 txs.map(async (tx, idx) => {
167162 const stx = await signTransaction({
@@ -175,9 +170,6 @@ export async function reticketPointBetweenWallets({
175170 gasPrice: suggestedGasPrice.toFixed(),
176171 gasLimit: tx.gas,
177172 });
178− if (!stx) {
179− debugger;
180− }
181173 return {
182174 raw: hexify(stx.serialize()),
183175 signed: stx,
@@ -209,7 +201,6 @@ export async function reticketPointBetweenWallets({
209201
210202 progress(TRANSACTION_PROGRESS.TRANSFERRING);
211203
212− console.log(txPairs);
213204 await sendAndAwaitAllSerial(web3, txPairs.map(p => p.signed), usedTank);
214205
215206 //