Commit adf9b084 authored by Khanh Hoa's avatar Khanh Hoa Committed by GitHub

refactor: correct comment naming (#10816)

parent 25ab2327
...@@ -82,7 +82,7 @@ type ChannelBuilder struct { ...@@ -82,7 +82,7 @@ type ChannelBuilder struct {
outputBytes int outputBytes int
} }
// newChannelBuilder creates a new channel builder or returns an error if the // NewChannelBuilder creates a new channel builder or returns an error if the
// channel out could not be created. // channel out could not be created.
// it acts as a factory for either a span or singular channel out // it acts as a factory for either a span or singular channel out
func NewChannelBuilder(cfg ChannelConfig, rollupCfg rollup.Config, latestL1OriginBlockNum uint64) (*ChannelBuilder, error) { func NewChannelBuilder(cfg ChannelConfig, rollupCfg rollup.Config, latestL1OriginBlockNum uint64) (*ChannelBuilder, error) {
......
...@@ -62,7 +62,7 @@ func (td *txData) Len() (l int) { ...@@ -62,7 +62,7 @@ func (td *txData) Len() (l int) {
return l return l
} }
// Frame returns the single frame of this tx data. // Frames returns the single frame of this tx data.
func (td *txData) Frames() []frameData { func (td *txData) Frames() []frameData {
return td.frames return td.frames
} }
......
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )
// clients represents a set of initialized RPC clients // Clients represents a set of initialized RPC clients
type Clients struct { type Clients struct {
L1Client *ethclient.Client L1Client *ethclient.Client
L2Client *ethclient.Client L2Client *ethclient.Client
......
...@@ -66,7 +66,7 @@ type DeployedBytecode struct { ...@@ -66,7 +66,7 @@ type DeployedBytecode struct {
ImmutableReferences json.RawMessage `json:"immutableReferences,omitempty"` ImmutableReferences json.RawMessage `json:"immutableReferences,omitempty"`
} }
// DeployedBytecode represents the bytecode section of the solc compiler output. // Bytecode represents the bytecode section of the solc compiler output.
type Bytecode struct { type Bytecode struct {
SourceMap string `json:"sourceMap"` SourceMap string `json:"sourceMap"`
Object hexutil.Bytes `json:"object"` Object hexutil.Bytes `json:"object"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment