Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
298
Merge Requests
39
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
6ebff2dd
Commit
6ebff2dd
authored
9 minutes ago
by
Ben Hayward
Browse files
Options
Download
Removed unneccesary try catch
parent
91c2cc07
fix/wallet-balance-caching-1115
1 merge request
!396
[Sprint/RollingRabbit](fix): Wallet balance caching #1115
Pipeline
#96660543
passed with stages
in 6 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
Controllers/api/v2/blockchain/wallet.php
View file @
6ebff2dd
...
...
@@ -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
());
...
...
This diff is collapsed.
Please
register
or
sign in
to comment