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
91c2cc07
Commit
91c2cc07
authored
13 minutes ago
by
Ben Hayward
Browse files
Options
Download
Update for feedback
parent
d169ef05
fix/wallet-balance-caching-1115
1 merge request
!396
[Sprint/RollingRabbit](fix): Wallet balance caching #1115
Pipeline
#96659974
failed with stages
in 3 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Core/Blockchain/Wallets/OnChain/Balance.php
View file @
91c2cc07
...
...
@@ -62,7 +62,7 @@ class Balance
$balance
=
$this
->
token
->
balanceOf
(
$address
);
if
(
$balance
===
null
)
{
throw
new
\Exception
(
'Unable to retrieve balance'
)
;
return
null
;
}
$this
->
cache
->
set
(
$cacheKey
,
serialize
(
$balance
),
60
);
...
...
This diff is collapsed.
Spec/Core/Blockchain/Wallets/OnChain/BalanceSpec.php
View file @
91c2cc07
...
...
@@ -90,6 +90,6 @@ class BalanceSpec extends ObjectBehavior
$this
->
setUser
(
$user
);
$this
->
shouldThrow
(
new
\Exception
(
"Unable to retrieve balance"
))
->
duringGet
(
);
$this
->
get
()
->
shouldReturn
(
null
);
}
}
This diff is collapsed.
Please
register
or
sign in
to comment