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
c9879ada
Unverified
Commit
c9879ada
authored
Jun 09, 2023
by
mergify[bot]
Committed by
GitHub
Jun 09, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into erigon-receipt-fetching
parents
ff9a287d
a80c4d67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
system_test.go
op-e2e/system_test.go
+3
-6
No files found.
op-e2e/system_test.go
View file @
c9879ada
...
@@ -1084,11 +1084,6 @@ func TestWithdrawals(t *testing.T) {
...
@@ -1084,11 +1084,6 @@ func TestWithdrawals(t *testing.T) {
proveReceipt
,
finalizeReceipt
:=
ProveAndFinalizeWithdrawal
(
t
,
cfg
,
l1Client
,
sys
.
Nodes
[
"verifier"
],
ethPrivKey
,
receipt
)
proveReceipt
,
finalizeReceipt
:=
ProveAndFinalizeWithdrawal
(
t
,
cfg
,
l1Client
,
sys
.
Nodes
[
"verifier"
],
ethPrivKey
,
receipt
)
// Verify balance after withdrawal
// Verify balance after withdrawal
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
1
*
time
.
Second
)
defer
cancel
()
header
,
err
=
l1Client
.
HeaderByNumber
(
ctx
,
finalizeReceipt
.
BlockNumber
)
require
.
Nil
(
t
,
err
)
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
1
*
time
.
Second
)
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
1
*
time
.
Second
)
defer
cancel
()
defer
cancel
()
endBalance
,
err
=
l1Client
.
BalanceAt
(
ctx
,
fromAddr
,
nil
)
endBalance
,
err
=
l1Client
.
BalanceAt
(
ctx
,
fromAddr
,
nil
)
...
@@ -1098,7 +1093,9 @@ func TestWithdrawals(t *testing.T) {
...
@@ -1098,7 +1093,9 @@ func TestWithdrawals(t *testing.T) {
// Fun fact, the fee is greater than the withdrawal amount
// Fun fact, the fee is greater than the withdrawal amount
// NOTE: The gas fees include *both* the ProveWithdrawalTransaction and FinalizeWithdrawalTransaction transactions.
// NOTE: The gas fees include *both* the ProveWithdrawalTransaction and FinalizeWithdrawalTransaction transactions.
diff
=
new
(
big
.
Int
)
.
Sub
(
endBalance
,
startBalance
)
diff
=
new
(
big
.
Int
)
.
Sub
(
endBalance
,
startBalance
)
fees
=
calcGasFees
(
proveReceipt
.
GasUsed
+
finalizeReceipt
.
GasUsed
,
tx
.
GasTipCap
(),
tx
.
GasFeeCap
(),
header
.
BaseFee
)
proveFee
:=
new
(
big
.
Int
)
.
Mul
(
new
(
big
.
Int
)
.
SetUint64
(
proveReceipt
.
GasUsed
),
proveReceipt
.
EffectiveGasPrice
)
finalizeFee
:=
new
(
big
.
Int
)
.
Mul
(
new
(
big
.
Int
)
.
SetUint64
(
finalizeReceipt
.
GasUsed
),
finalizeReceipt
.
EffectiveGasPrice
)
fees
=
new
(
big
.
Int
)
.
Add
(
proveFee
,
finalizeFee
)
withdrawAmount
=
withdrawAmount
.
Sub
(
withdrawAmount
,
fees
)
withdrawAmount
=
withdrawAmount
.
Sub
(
withdrawAmount
,
fees
)
require
.
Equal
(
t
,
withdrawAmount
,
diff
)
require
.
Equal
(
t
,
withdrawAmount
,
diff
)
}
}
...
...
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