Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
237
Issues
237
List
Boards
Labels
Service Desk
Milestones
Merge Requests
43
Merge Requests
43
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
24daea42
Commit
24daea42
authored
2 hours ago
by
Guy Thouret
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore) Use error_log instead of var_dump/echo to control the output of Blockchain\Events -
#665
parent
7aaa5cf9
chore/665-refactor-object-use
No related merge requests found
Pipeline
#89477209
failed with stages
in 8 minutes and 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
Core/Blockchain/Events/TokenSaleEvent.php
Core/Blockchain/Events/TokenSaleEvent.php
+2
-2
Core/Blockchain/Events/WithdrawEvent.php
Core/Blockchain/Events/WithdrawEvent.php
+0
-1
No files found.
Core/Blockchain/Events/TokenSaleEvent.php
View file @
24daea42
...
...
@@ -74,11 +74,11 @@ class TokenSaleEvent implements BlockchainEventInterface
$purchase
=
$this
->
manager
->
getPurchase
(
$transaction
->
getData
()[
'phone_number_hash'
],
$transaction
->
getTx
());
if
(
!
$purchase
)
{
e
cho
"purchase not found"
;
e
rror_log
(
"purchase not found"
)
;
return
;
//purchase not found
}
var_dump
(
$log
);
error_log
(
print_r
(
$log
,
true
)
);
//is the requested amount below what has already been recorded
if
(
$transaction
->
getAmount
()
>
$purchase
->
getUnissuedAmount
())
{
return
;
//requested more than can issue
...
...
This diff is collapsed.
Click to expand it.
Core/Blockchain/Events/WithdrawEvent.php
View file @
24daea42
...
...
@@ -96,7 +96,6 @@ class WithdrawEvent implements BlockchainEventInterface
try
{
$this
->
manager
->
complete
(
$request
,
$transaction
);
}
catch
(
\Exception
$e
)
{
var_dump
(
$e
);
error_log
(
print_r
(
$e
,
true
));
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment