Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
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
exchain
nebula
Commits
950c1482
Commit
950c1482
authored
Aug 07, 2023
by
Hamdi Allam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lint typo
parent
33ed5e38
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
bridge_transactions.go
indexer/database/bridge_transactions.go
+6
-3
bridge_transactions_e2e_test.go
indexer/e2e_tests/bridge_transactions_e2e_test.go
+1
-1
No files found.
indexer/database/bridge_transactions.go
View file @
950c1482
...
@@ -126,7 +126,8 @@ func (db *bridgeTransactionsDB) MarkL2TransactionWithdrawalProvenEvent(withdrawa
...
@@ -126,7 +126,8 @@ func (db *bridgeTransactionsDB) MarkL2TransactionWithdrawalProvenEvent(withdrawa
withdrawal
,
err
:=
db
.
L2TransactionWithdrawal
(
withdrawalHash
)
withdrawal
,
err
:=
db
.
L2TransactionWithdrawal
(
withdrawalHash
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
else
if
withdrawal
==
nil
{
}
if
withdrawal
==
nil
{
return
fmt
.
Errorf
(
"transaction withdrawal hash %s not found"
,
withdrawalHash
)
return
fmt
.
Errorf
(
"transaction withdrawal hash %s not found"
,
withdrawalHash
)
}
}
...
@@ -140,9 +141,11 @@ func (db *bridgeTransactionsDB) MarkL2TransactionWithdrawalFinalizedEvent(withdr
...
@@ -140,9 +141,11 @@ func (db *bridgeTransactionsDB) MarkL2TransactionWithdrawalFinalizedEvent(withdr
withdrawal
,
err
:=
db
.
L2TransactionWithdrawal
(
withdrawalHash
)
withdrawal
,
err
:=
db
.
L2TransactionWithdrawal
(
withdrawalHash
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
else
if
withdrawal
==
nil
{
}
if
withdrawal
==
nil
{
return
fmt
.
Errorf
(
"transaction withdrawal hash %s not found"
,
withdrawalHash
)
return
fmt
.
Errorf
(
"transaction withdrawal hash %s not found"
,
withdrawalHash
)
}
else
if
withdrawal
.
ProvenL1EventGUID
==
nil
{
}
if
withdrawal
.
ProvenL1EventGUID
==
nil
{
return
fmt
.
Errorf
(
"cannot mark unproven withdrawal hash %s as finalized"
,
withdrawal
.
WithdrawalHash
)
return
fmt
.
Errorf
(
"cannot mark unproven withdrawal hash %s as finalized"
,
withdrawal
.
WithdrawalHash
)
}
}
...
...
indexer/e2e_tests/bridge_transactions_e2e_test.go
View file @
950c1482
...
@@ -177,7 +177,7 @@ func TestE2EBridgeTransactionsL2ToL1MessagePasserFailedWithdrawal(t *testing.T)
...
@@ -177,7 +177,7 @@ func TestE2EBridgeTransactionsL2ToL1MessagePasserFailedWithdrawal(t *testing.T)
aliceAddr
:=
testSuite
.
OpCfg
.
Secrets
.
Addresses
()
.
Alice
aliceAddr
:=
testSuite
.
OpCfg
.
Secrets
.
Addresses
()
.
Alice
// Try to withdraw
l
1 ETH from L2 without any corresponding deposits on L1
// Try to withdraw 1 ETH from L2 without any corresponding deposits on L1
l2Opts
,
err
:=
bind
.
NewKeyedTransactorWithChainID
(
testSuite
.
OpCfg
.
Secrets
.
Alice
,
testSuite
.
OpCfg
.
L2ChainIDBig
())
l2Opts
,
err
:=
bind
.
NewKeyedTransactorWithChainID
(
testSuite
.
OpCfg
.
Secrets
.
Alice
,
testSuite
.
OpCfg
.
L2ChainIDBig
())
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
l2Opts
.
Value
=
big
.
NewInt
(
params
.
Ether
)
l2Opts
.
Value
=
big
.
NewInt
(
params
.
Ether
)
...
...
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