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
62a554dc
Unverified
Commit
62a554dc
authored
Apr 25, 2024
by
Aaron Chen
Committed by
GitHub
Apr 24, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove duplicate imports (#10284)
parent
c6fe5c9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
provider_test.go
op-challenger/game/fault/trace/cannon/provider_test.go
+0
-1
extractor_test.go
op-dispute-mon/mon/extract/extractor_test.go
+1
-2
system_test.go
op-e2e/system_test.go
+4
-5
No files found.
op-challenger/game/fault/trace/cannon/provider_test.go
View file @
62a554dc
...
...
@@ -3,7 +3,6 @@ package cannon
import
(
"context"
"embed"
_
"embed"
"encoding/json"
"fmt"
"math"
...
...
op-dispute-mon/mon/extract/extractor_test.go
View file @
62a554dc
...
...
@@ -12,7 +12,6 @@ import (
"github.com/stretchr/testify/require"
faultTypes
"github.com/ethereum-optimism/optimism/op-challenger/game/fault/types"
"github.com/ethereum-optimism/optimism/op-challenger/game/types"
gameTypes
"github.com/ethereum-optimism/optimism/op-challenger/game/types"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
...
...
@@ -217,7 +216,7 @@ func (m *mockGameCaller) GetWithdrawals(_ context.Context, _ rpcblock.Block, _ c
},
nil
}
func
(
m
*
mockGameCaller
)
GetGameMetadata
(
_
context
.
Context
,
_
rpcblock
.
Block
)
(
common
.
Hash
,
uint64
,
common
.
Hash
,
t
ypes
.
GameStatus
,
uint64
,
error
)
{
func
(
m
*
mockGameCaller
)
GetGameMetadata
(
_
context
.
Context
,
_
rpcblock
.
Block
)
(
common
.
Hash
,
uint64
,
common
.
Hash
,
gameT
ypes
.
GameStatus
,
uint64
,
error
)
{
m
.
metadataCalls
++
if
m
.
metadataErr
!=
nil
{
return
common
.
Hash
{},
0
,
common
.
Hash
{},
0
,
0
,
m
.
metadataErr
...
...
op-e2e/system_test.go
View file @
62a554dc
...
...
@@ -11,8 +11,6 @@ import (
"testing"
"time"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/geth"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
...
...
@@ -33,7 +31,8 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-e2e/config"
gethutils
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/geth"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/geth"
"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/metrics"
...
...
@@ -267,10 +266,10 @@ func TestSystemE2EDencunAtGenesisWithBlobs(t *testing.T) {
require
.
Nil
(
t
,
err
,
"Waiting for blob tx on L1"
)
// end sending blob-containing txns on l1
l2Client
:=
sys
.
Clients
[
"sequencer"
]
finalizedBlock
,
err
:=
geth
utils
.
WaitForL1OriginOnL2
(
sys
.
RollupConfig
,
blockContainsBlob
.
BlockNumber
.
Uint64
(),
l2Client
,
30
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
finalizedBlock
,
err
:=
geth
.
WaitForL1OriginOnL2
(
sys
.
RollupConfig
,
blockContainsBlob
.
BlockNumber
.
Uint64
(),
l2Client
,
30
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
require
.
Nil
(
t
,
err
,
"Waiting for L1 origin of blob tx on L2"
)
finalizationTimeout
:=
30
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
_
,
err
=
geth
utils
.
WaitForBlockToBeSafe
(
finalizedBlock
.
Header
()
.
Number
,
l2Client
,
finalizationTimeout
)
_
,
err
=
geth
.
WaitForBlockToBeSafe
(
finalizedBlock
.
Header
()
.
Number
,
l2Client
,
finalizationTimeout
)
require
.
Nil
(
t
,
err
,
"Waiting for safety of L2 block"
)
}
...
...
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