Commit 6ebff2dd authored by Ben Hayward's avatar Ben Hayward

Removed unneccesary try catch

1 merge request!396[Sprint/RollingRabbit](fix): Wallet balance caching #1115
Pipeline #96660543 passed with stages
in 6 minutes and 43 seconds
......@@ -43,12 +43,7 @@ class wallet implements Interfaces\Api
case 'balance':
$onChainBalance = Di::_()->get('Blockchain\Wallets\OnChain\Balance');
$onChainBalance->setUser(Session::getLoggedinUser());
try {
$onChainBalanceVal = BigNumber::_($onChainBalance->get());
} catch (\Exception $e) {
$onChainBalanceVal = null;
}
$onChainBalanceVal = BigNumber::_($onChainBalance->get());
$offChainBalance = Di::_()->get('Blockchain\Wallets\OffChain\Balance');
$offChainBalance->setUser(Session::getLoggedinUser());
......
Please register or to comment