Commit c3608afc authored by Mark Harding's avatar Mark Harding

(fix): do not request balance if not user provided

1 merge request!335WIP: (WIP) Feat/permissions on entities 737
Pipeline #85493998 waiting for manual action with stages
in 11 minutes and 18 seconds
......@@ -78,6 +78,9 @@ class Sums
public function getContractBalance($contract = '', $onlySpend = false)
{
if (!$this->user) {
return 0;
}
$cql = "SELECT SUM(amount) as balance from blockchain_transactions_mainnet WHERE user_guid = ? AND wallet_address = ?";
$values = [
new Varint($this->user->guid),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment