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
d118d119
Unverified
Commit
d118d119
authored
Dec 11, 2023
by
Joshua Gutow
Committed by
GitHub
Dec 11, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8553 from Chomtana/typo-op-service
chore: fix op-service typo
parents
22f6efe1
b25a5138
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
artifact.go
op-bindings/foundry/artifact.go
+1
-1
frame.go
op-node/rollup/derive/frame.go
+1
-1
lifecycle_test.go
op-service/cliapp/lifecycle_test.go
+1
-1
ssz.go
op-service/eth/ssz.go
+1
-1
ssz_test.go
op-service/eth/ssz_test.go
+1
-1
ref_metrics.go
op-service/metrics/ref_metrics.go
+1
-1
send_state_test.go
op-service/txmgr/send_state_test.go
+1
-1
txmgr_test.go
op-service/txmgr/txmgr_test.go
+1
-1
rpc.go
proxyd/rpc.go
+1
-1
server.go
proxyd/server.go
+1
-1
No files found.
op-bindings/foundry/artifact.go
View file @
d118d119
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
// Artifact represents a foundry compilation artifact.
// Artifact represents a foundry compilation artifact.
// The Abi is specifically left as a json.RawMessage because
// The Abi is specifically left as a json.RawMessage because
// round trip marshaling/unmarshaling of the abi.ABI type
// round trip marshaling/unmarshal
l
ing of the abi.ABI type
// causes issues.
// causes issues.
type
Artifact
struct
{
type
Artifact
struct
{
Abi
json
.
RawMessage
`json:"abi"`
Abi
json
.
RawMessage
`json:"abi"`
...
...
op-node/rollup/derive/frame.go
View file @
d118d119
...
@@ -108,7 +108,7 @@ func (f *Frame) UnmarshalBinary(r ByteReader) error {
...
@@ -108,7 +108,7 @@ func (f *Frame) UnmarshalBinary(r ByteReader) error {
// eofAsUnexpectedMissing converts an io.EOF in the error chain of err into an
// eofAsUnexpectedMissing converts an io.EOF in the error chain of err into an
// io.ErrUnexpectedEOF. It should be used to convert intermediate io.EOF errors
// io.ErrUnexpectedEOF. It should be used to convert intermediate io.EOF errors
// in unmarshaling code to achieve idiomatic error behavior.
// in unmarshal
l
ing code to achieve idiomatic error behavior.
// Other errors are passed through unchanged.
// Other errors are passed through unchanged.
func
eofAsUnexpectedMissing
(
err
error
)
error
{
func
eofAsUnexpectedMissing
(
err
error
)
error
{
if
errors
.
Is
(
err
,
io
.
EOF
)
{
if
errors
.
Is
(
err
,
io
.
EOF
)
{
...
...
op-service/cliapp/lifecycle_test.go
View file @
d118d119
...
@@ -129,7 +129,7 @@ func TestLifecycleCmd(t *testing.T) {
...
@@ -129,7 +129,7 @@ func TestLifecycleCmd(t *testing.T) {
})
})
t
.
Run
(
"failed init"
,
func
(
t
*
testing
.
T
)
{
t
.
Run
(
"failed init"
,
func
(
t
*
testing
.
T
)
{
_
,
initCh
,
_
,
_
,
resultCh
,
_
:=
appSetup
(
t
)
_
,
initCh
,
_
,
_
,
resultCh
,
_
:=
appSetup
(
t
)
v
:=
errors
.
New
(
"TEST INIT ERR
R
OR"
)
v
:=
errors
.
New
(
"TEST INIT ERROR"
)
initCh
<-
v
initCh
<-
v
res
:=
<-
resultCh
res
:=
<-
resultCh
require
.
ErrorIs
(
t
,
res
,
v
)
require
.
ErrorIs
(
t
,
res
,
v
)
...
...
op-service/eth/ssz.go
View file @
d118d119
...
@@ -180,7 +180,7 @@ func (payload *ExecutionPayload) MarshalSSZ(w io.Writer) (n int, err error) {
...
@@ -180,7 +180,7 @@ func (payload *ExecutionPayload) MarshalSSZ(w io.Writer) (n int, err error) {
// dynamic value 2: Transactions
// dynamic value 2: Transactions
marshalTransactions
(
buf
[
offset
:
offset
+
transactionSize
],
payload
.
Transactions
)
marshalTransactions
(
buf
[
offset
:
offset
+
transactionSize
],
payload
.
Transactions
)
offset
+=
transactionSize
offset
+=
transactionSize
// dy
an
mic value 3: Withdrawals
// dy
na
mic value 3: Withdrawals
if
payload
.
Withdrawals
!=
nil
{
if
payload
.
Withdrawals
!=
nil
{
marshalWithdrawals
(
buf
[
offset
:
],
*
payload
.
Withdrawals
)
marshalWithdrawals
(
buf
[
offset
:
],
*
payload
.
Withdrawals
)
}
}
...
...
op-service/eth/ssz_test.go
View file @
d118d119
...
@@ -190,7 +190,7 @@ func FuzzOBP01(f *testing.F) {
...
@@ -190,7 +190,7 @@ func FuzzOBP01(f *testing.F) {
})
})
}
}
// TestOPB01 verifies that the SSZ unmarshaling code
// TestOPB01 verifies that the SSZ unmarshal
l
ing code
// properly checks for the transactionOffset being larger
// properly checks for the transactionOffset being larger
// than the extraDataOffset.
// than the extraDataOffset.
func
TestOPB01
(
t
*
testing
.
T
)
{
func
TestOPB01
(
t
*
testing
.
T
)
{
...
...
op-service/metrics/ref_metrics.go
View file @
d118d119
...
@@ -34,7 +34,7 @@ type RefMetrics struct {
...
@@ -34,7 +34,7 @@ type RefMetrics struct {
var
_
RefMetricer
=
(
*
RefMetrics
)(
nil
)
var
_
RefMetricer
=
(
*
RefMetrics
)(
nil
)
// MakeRefMetrics returns a new RefMetrics, initializing its prometheus fields
// MakeRefMetrics returns a new RefMetrics, initializing its prometheus fields
// using factory. It is supposed to be used inside the construtors of metrics
// using factory. It is supposed to be used inside the constru
c
tors of metrics
// structs for any op service after the full namespace and factory have been
// structs for any op service after the full namespace and factory have been
// setup.
// setup.
//
//
...
...
op-service/txmgr/send_state_test.go
View file @
d118d119
...
@@ -187,5 +187,5 @@ func TestSendStateTimeoutAbort(t *testing.T) {
...
@@ -187,5 +187,5 @@ func TestSendStateTimeoutAbort(t *testing.T) {
func
TestSendStateNoTimeoutAbortIfPublishedTx
(
t
*
testing
.
T
)
{
func
TestSendStateNoTimeoutAbortIfPublishedTx
(
t
*
testing
.
T
)
{
sendState
:=
newSendStateWithTimeout
(
10
*
time
.
Millisecond
,
stepClock
(
20
*
time
.
Millisecond
))
sendState
:=
newSendStateWithTimeout
(
10
*
time
.
Millisecond
,
stepClock
(
20
*
time
.
Millisecond
))
sendState
.
ProcessSendError
(
nil
)
sendState
.
ProcessSendError
(
nil
)
require
.
False
(
t
,
sendState
.
ShouldAbortImmediately
(),
"Should not abort if published trans
ca
tion successfully"
)
require
.
False
(
t
,
sendState
.
ShouldAbortImmediately
(),
"Should not abort if published trans
ac
tion successfully"
)
}
}
op-service/txmgr/txmgr_test.go
View file @
d118d119
...
@@ -239,7 +239,7 @@ func (*mockBackend) ChainID(ctx context.Context) (*big.Int, error) {
...
@@ -239,7 +239,7 @@ func (*mockBackend) ChainID(ctx context.Context) (*big.Int, error) {
}
}
// TransactionReceipt queries the mockBackend for a mined txHash. If none is
// TransactionReceipt queries the mockBackend for a mined txHash. If none is
// found, nil is returned for both return values. Otherwise, it ret
ru
ns a
// found, nil is returned for both return values. Otherwise, it ret
ur
ns a
// receipt containing the txHash and the gasFeeCap used in the GasUsed to make
// receipt containing the txHash and the gasFeeCap used in the GasUsed to make
// the value accessible from our test framework.
// the value accessible from our test framework.
func
(
b
*
mockBackend
)
TransactionReceipt
(
ctx
context
.
Context
,
txHash
common
.
Hash
)
(
*
types
.
Receipt
,
error
)
{
func
(
b
*
mockBackend
)
TransactionReceipt
(
ctx
context
.
Context
,
txHash
common
.
Hash
)
(
*
types
.
Receipt
,
error
)
{
...
...
proxyd/rpc.go
View file @
d118d119
...
@@ -110,7 +110,7 @@ func ParseRPCRes(r io.Reader) (*RPCRes, error) {
...
@@ -110,7 +110,7 @@ func ParseRPCRes(r io.Reader) (*RPCRes, error) {
res
:=
new
(
RPCRes
)
res
:=
new
(
RPCRes
)
if
err
:=
json
.
Unmarshal
(
body
,
res
);
err
!=
nil
{
if
err
:=
json
.
Unmarshal
(
body
,
res
);
err
!=
nil
{
return
nil
,
wrapErr
(
err
,
"error unmarshaling RPC response"
)
return
nil
,
wrapErr
(
err
,
"error unmarshal
l
ing RPC response"
)
}
}
return
res
,
nil
return
res
,
nil
...
...
proxyd/server.go
View file @
d118d119
...
@@ -677,7 +677,7 @@ func (s *Server) isGlobalLimit(method string) bool {
...
@@ -677,7 +677,7 @@ func (s *Server) isGlobalLimit(method string) bool {
func
(
s
*
Server
)
rateLimitSender
(
ctx
context
.
Context
,
req
*
RPCReq
)
error
{
func
(
s
*
Server
)
rateLimitSender
(
ctx
context
.
Context
,
req
*
RPCReq
)
error
{
var
params
[]
string
var
params
[]
string
if
err
:=
json
.
Unmarshal
(
req
.
Params
,
&
params
);
err
!=
nil
{
if
err
:=
json
.
Unmarshal
(
req
.
Params
,
&
params
);
err
!=
nil
{
log
.
Debug
(
"error unmarshaling raw transaction params"
,
"err"
,
err
,
"req_Id"
,
GetReqID
(
ctx
))
log
.
Debug
(
"error unmarshal
l
ing raw transaction params"
,
"err"
,
err
,
"req_Id"
,
GetReqID
(
ctx
))
return
ErrParseErr
return
ErrParseErr
}
}
...
...
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