Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
e46c31f4
Unverified
Commit
e46c31f4
authored
Jun 19, 2021
by
Ralph Pichler
Committed by
GitHub
Jun 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(transaction): add a missing return, implement a mock function (#2145)
parent
19922038
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
transaction.go
pkg/transaction/transaction.go
+1
-0
transaction_test.go
pkg/transaction/transaction_test.go
+5
-1
No files found.
pkg/transaction/transaction.go
View file @
e46c31f4
...
@@ -194,6 +194,7 @@ func (t *transactionService) waitForPendingTx(txHash common.Hash) {
...
@@ -194,6 +194,7 @@ func (t *transactionService) waitForPendingTx(txHash common.Hash) {
if
err
!=
nil
{
if
err
!=
nil
{
if
!
errors
.
Is
(
err
,
ErrTransactionCancelled
)
{
if
!
errors
.
Is
(
err
,
ErrTransactionCancelled
)
{
t
.
logger
.
Errorf
(
"error while waiting for pending transaction %x: %v"
,
txHash
,
err
)
t
.
logger
.
Errorf
(
"error while waiting for pending transaction %x: %v"
,
txHash
,
err
)
return
}
}
t
.
logger
.
Warningf
(
"pending transaction %x cancelled"
,
txHash
)
t
.
logger
.
Warningf
(
"pending transaction %x cancelled"
,
txHash
)
}
else
{
}
else
{
...
...
pkg/transaction/transaction_test.go
View file @
e46c31f4
...
@@ -119,7 +119,11 @@ func TestTransactionSend(t *testing.T) {
...
@@ -119,7 +119,11 @@ func TestTransactionSend(t *testing.T) {
signerMockForTransaction
(
signedTx
,
sender
,
chainID
,
t
),
signerMockForTransaction
(
signedTx
,
sender
,
chainID
,
t
),
store
,
store
,
chainID
,
chainID
,
monitormock
.
New
(),
monitormock
.
New
(
monitormock
.
WithWatchTransactionFunc
(
func
(
txHash
common
.
Hash
,
nonce
uint64
)
(
<-
chan
types
.
Receipt
,
<-
chan
error
,
error
)
{
return
nil
,
nil
,
nil
}),
),
)
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatal
(
err
)
t
.
Fatal
(
err
)
...
...
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