Commit 798b8fba authored by Theburaka's avatar Theburaka Committed by GitHub

fix bad spell in op-service (#10974)

parent 3068abee
...@@ -49,7 +49,7 @@ func (a Artifact) MarshalJSON() ([]byte, error) { ...@@ -49,7 +49,7 @@ func (a Artifact) MarshalJSON() ([]byte, error) {
return json.Marshal(artifact) return json.Marshal(artifact)
} }
// artifactMarshaling is a helper struct for marshaling and unmarshaling // artifactMarshaling is a helper struct for marshaling and unmarshalling
// foundry artifacts. // foundry artifacts.
type artifactMarshaling struct { type artifactMarshaling struct {
ABI json.RawMessage `json:"abi"` ABI json.RawMessage `json:"abi"`
......
...@@ -16,7 +16,7 @@ type dataJson struct { ...@@ -16,7 +16,7 @@ type dataJson struct {
Data map[string]any `json:"data"` Data map[string]any `json:"data"`
} }
// TestAPIGenesisResponse tests that json unmarshaling a json response from a // TestAPIGenesisResponse tests that json unmarshalling a json response from a
// eth/v1/beacon/genesis beacon node call into a APIGenesisResponse object // eth/v1/beacon/genesis beacon node call into a APIGenesisResponse object
// fills all existing fields with the expected values, thereby confirming that // fills all existing fields with the expected values, thereby confirming that
// APIGenesisResponse is compatible with the current beacon node API. // APIGenesisResponse is compatible with the current beacon node API.
...@@ -41,7 +41,7 @@ func TestAPIGenesisResponse(t *testing.T) { ...@@ -41,7 +41,7 @@ func TestAPIGenesisResponse(t *testing.T) {
require.Equal(jsonMap.Data["genesis_time"].(string), string(genesisTime)) require.Equal(jsonMap.Data["genesis_time"].(string), string(genesisTime))
} }
// TestAPIConfigResponse tests that json unmarshaling a json response from a // TestAPIConfigResponse tests that json unmarshalling a json response from a
// eth/v1/config/spec beacon node call into a APIConfigResponse object // eth/v1/config/spec beacon node call into a APIConfigResponse object
// fills all existing fields with the expected values, thereby confirming that // fills all existing fields with the expected values, thereby confirming that
// APIGenesisResponse is compatible with the current beacon node API. // APIGenesisResponse is compatible with the current beacon node API.
...@@ -66,7 +66,7 @@ func TestAPIConfigResponse(t *testing.T) { ...@@ -66,7 +66,7 @@ func TestAPIConfigResponse(t *testing.T) {
require.Equal(jsonMap.Data["SECONDS_PER_SLOT"].(string), string(secPerSlot)) require.Equal(jsonMap.Data["SECONDS_PER_SLOT"].(string), string(secPerSlot))
} }
// TestAPIGetBlobSidecarsResponse tests that json unmarshaling a json response from a // TestAPIGetBlobSidecarsResponse tests that json unmarshalling a json response from a
// eth/v1/beacon/blob_sidecars/<X> beacon node call into a APIGetBlobSidecarsResponse object // eth/v1/beacon/blob_sidecars/<X> beacon node call into a APIGetBlobSidecarsResponse object
// fills all existing fields with the expected values, thereby confirming that // fills all existing fields with the expected values, thereby confirming that
// APIGenesisResponse is compatible with the current beacon node API. // APIGenesisResponse is compatible with the current beacon node API.
......
...@@ -19,7 +19,7 @@ import ( ...@@ -19,7 +19,7 @@ import (
// to the "balance" metric of the namespace. The balance of the account is recorded in Ether (not Wei). // to the "balance" metric of the namespace. The balance of the account is recorded in Ether (not Wei).
// Cancel the supplied context to shut down the go routine // Cancel the supplied context to shut down the go routine
func LaunchBalanceMetrics(log log.Logger, r *prometheus.Registry, ns string, client *ethclient.Client, account common.Address) *clock.LoopFn { func LaunchBalanceMetrics(log log.Logger, r *prometheus.Registry, ns string, client *ethclient.Client, account common.Address) *clock.LoopFn {
balanceGuage := promauto.With(r).NewGauge(prometheus.GaugeOpts{ balanceGauge := promauto.With(r).NewGauge(prometheus.GaugeOpts{
Namespace: ns, Namespace: ns,
Name: "balance", Name: "balance",
Help: "balance (in ether) of account " + account.String(), Help: "balance (in ether) of account " + account.String(),
...@@ -33,7 +33,7 @@ func LaunchBalanceMetrics(log log.Logger, r *prometheus.Registry, ns string, cli ...@@ -33,7 +33,7 @@ func LaunchBalanceMetrics(log log.Logger, r *prometheus.Registry, ns string, cli
return return
} }
bal := eth.WeiToEther(bigBal) bal := eth.WeiToEther(bigBal)
balanceGuage.Set(bal) balanceGauge.Set(bal)
}, func() error { }, func() error {
log.Info("balance metrics shutting down") log.Info("balance metrics shutting down")
return nil return nil
......
...@@ -16,7 +16,7 @@ var ( ...@@ -16,7 +16,7 @@ var (
ErrAlreadyReserved = errors.New("address already reserved") ErrAlreadyReserved = errors.New("address already reserved")
// Returned by CriticalError when the system is unable to get the tx into the mempool in the // Returned by CriticalError when the system is unable to get the tx into the mempool in the
// alloted time // allotted time
ErrMempoolDeadlineExpired = errors.New("failed to get tx into the mempool") ErrMempoolDeadlineExpired = errors.New("failed to get tx into the mempool")
) )
...@@ -125,7 +125,7 @@ func (s *SendState) CriticalError() error { ...@@ -125,7 +125,7 @@ func (s *SendState) CriticalError() error {
// we have exceeded the nonce too low count // we have exceeded the nonce too low count
return core.ErrNonceTooLow return core.ErrNonceTooLow
case s.successFullPublishCount == 0 && s.now().After(s.txInMempoolDeadline): case s.successFullPublishCount == 0 && s.now().After(s.txInMempoolDeadline):
// unable to get the tx into the mempool in the alloted time // unable to get the tx into the mempool in the allotted time
return ErrMempoolDeadlineExpired return ErrMempoolDeadlineExpired
case s.alreadyReserved: case s.alreadyReserved:
// incompatible tx type in mempool // incompatible tx type in mempool
......
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