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
a0e74caf
Unverified
Commit
a0e74caf
authored
Sep 29, 2023
by
Adrian Sutton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-e2e: Pad the gas estimate when sending a deposit transaction through the standard bridge.
parent
c6de563e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
bridge_test.go
op-e2e/bridge_test.go
+4
-1
No files found.
op-e2e/bridge_test.go
View file @
a0e74caf
...
...
@@ -8,6 +8,7 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/transactions"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/wait"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/testlog"
...
...
@@ -83,7 +84,9 @@ func TestERC20BridgeDeposits(t *testing.T) {
// Bridge the WETH9
l1StandardBridge
,
err
:=
bindings
.
NewL1StandardBridge
(
cfg
.
L1Deployments
.
L1StandardBridgeProxy
,
l1Client
)
require
.
NoError
(
t
,
err
)
tx
,
err
=
l1StandardBridge
.
BridgeERC20
(
opts
,
weth9Address
,
event
.
LocalToken
,
big
.
NewInt
(
100
),
100000
,
[]
byte
{})
tx
,
err
=
transactions
.
PadGasEstimate
(
opts
,
1.1
,
func
(
opts
*
bind
.
TransactOpts
)
(
*
types
.
Transaction
,
error
)
{
return
l1StandardBridge
.
BridgeERC20
(
opts
,
weth9Address
,
event
.
LocalToken
,
big
.
NewInt
(
100
),
100000
,
[]
byte
{})
})
require
.
NoError
(
t
,
err
)
depositReceipt
,
err
:=
wait
.
ForReceiptOK
(
context
.
Background
(),
l1Client
,
tx
.
Hash
())
require
.
NoError
(
t
,
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