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

Commit

Permalink
fix(Testnet): fix send on testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Welber committed Mar 27, 2018
1 parent a1d7c80 commit 8e18f0c
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 8e18f0c

Please sign in to comment.