Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1485 from blockchain/fix-testnet-send
Browse files Browse the repository at this point in the history
Fix send on testnet
  • Loading branch information
jtormey committed Mar 28, 2018
2 parents a1d7c80 + 8e18f0c commit 2dd665e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions assets/js/services/wallet.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,18 +291,20 @@ function Wallet ($http, $window, $timeout, $location, $injector, Alerts, MyWalle
let history = [];
history.push(wallet.my.wallet.getHistory());

let Ethereum = $injector.get('Ethereum');
if (Ethereum.eth) history.push(Ethereum.fetchHistory());

let BitcoinCash = $injector.get('BitcoinCash');
if (BitcoinCash.bch) history.push(BitcoinCash.getHistory());
if (BlockchainConstants.NETWORK === 'testnet') {
didFetchTransactions()
} else {
let Ethereum = $injector.get('Ethereum');
if (Ethereum.eth) history.push(Ethereum.fetchHistory());

let ShapeShift = $injector.get('ShapeShift');
if (ShapeShift.shapeshift) ShapeShift.checkForCompletedTrades();
let BitcoinCash = $injector.get('BitcoinCash');
if (BitcoinCash.bch) history.push(BitcoinCash.getHistory());

$q.all(history).then(didFetchTransactions);
let ShapeShift = $injector.get('ShapeShift');
if (ShapeShift.shapeshift) ShapeShift.checkForCompletedTrades();
$q.all(history).then(didFetchTransactions);
}
}

return result.guid;
});
};
Expand Down

0 comments on commit 2dd665e

Please sign in to comment.