Skip to content

Commit 2d6cdaf

Browse files
Co-authored-by: smartcontracts <kelvin@optimism.io>
1 parent 9eb5f88 commit 2d6cdaf

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

op-chain-ops/cmd/receipt-reference-builder/readwrite.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (w jsonAggregateReaderWriter) readAggregate(f string) (aggregate, error) {
4747
type gobAggregateReaderWriter struct{}
4848

4949
// writeAggregate writes the aggregate to a file in gob format
50-
// if the output file is not specified, it will creeate a file based on the block range
50+
// if the output file is not specified, it will create a file based on the block range
5151
func (w gobAggregateReaderWriter) writeAggregate(a aggregate, o string) error {
5252
if o == "" {
5353
o = fmt.Sprintf("%d.%d-%d.gob", a.ChainID, a.First, a.Last)

op-chain-ops/safe/batch_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ func TestBatchAddCallFinalizeWithdrawalTransaction(t *testing.T) {
7070
require.JSONEq(t, string(expected), string(serialized))
7171
}
7272

73-
// TestBatchAddCallDespostTransaction ensures that simple calls can be serialized correctly.
74-
func TestBatchAddCallDespositTransaction(t *testing.T) {
73+
// TestBatchAddCallDepositTransaction ensures that simple calls can be serialized correctly.
74+
func TestBatchAddCallDepositTransaction(t *testing.T) {
7575
file, err := os.ReadFile("testdata/portal-abi.json")
7676
require.NoError(t, err)
7777
portalABI, err := abi.JSON(bytes.NewReader(file))

op-conductor/conductor/service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ func (oc *OpConductor) action() {
576576
break
577577
}
578578

579-
// 2. we're here becasuse an healthy leader became unhealthy itself
579+
// 2. we're here because an healthy leader became unhealthy itself
580580
// then we should try to stop sequencing locally and transfer leadership.
581581
var result *multierror.Error
582582
// Try to stop sequencer first, but since sequencer is not healthy, we may not be able to stop it.

op-node/rollup/async/asyncgossiper.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ type SimpleAsyncGossiper struct {
4040
}
4141

4242
// To avoid import cycles, we define a new Network interface here
43-
// this interface is compatable with driver.Network
43+
// this interface is compatible with driver.Network
4444
type Network interface {
4545
PublishL2Payload(ctx context.Context, payload *eth.ExecutionPayloadEnvelope) error
4646
}
4747

4848
// To avoid import cycles, we define a new Metrics interface here
49-
// this interface is compatable with driver.Metrics
49+
// this interface is compatible with driver.Metrics
5050
type Metrics interface {
5151
RecordPublishingError()
5252
}

op-node/rollup/derive/engine_consolidate_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func mismatchedParentHashArgs() args {
107107
return args
108108
}
109109

110-
func createMistmatchedPrevRandao() args {
110+
func createMismatchedPrevRandao() args {
111111
args := ecotoneArgs()
112112
args.attrs.PrevRandao = eth.Bytes32(common.HexToHash("0xabc"))
113113
return args
@@ -126,7 +126,7 @@ func createNilGasLimit() args {
126126
return args
127127
}
128128

129-
func createMistmatchedTimestamp() args {
129+
func createMismatchedTimestamp() args {
130130
args := ecotoneArgs()
131131
val := eth.Uint64Quantity(2000)
132132
args.attrs.Timestamp = val
@@ -178,7 +178,7 @@ func TestAttributesMatch(t *testing.T) {
178178
},
179179
{
180180
shouldMatch: false,
181-
args: createMistmatchedPrevRandao(),
181+
args: createMismatchedPrevRandao(),
182182
},
183183
{
184184
shouldMatch: false,
@@ -190,7 +190,7 @@ func TestAttributesMatch(t *testing.T) {
190190
},
191191
{
192192
shouldMatch: false,
193-
args: createMistmatchedTimestamp(),
193+
args: createMismatchedTimestamp(),
194194
},
195195
}
196196

op-node/rollup/derive/frame_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func randomFrame(rng *rand.Rand, opts ...frameOpt) *Frame {
224224
IsLast: testutils.RandomBool(rng),
225225
}
226226

227-
// evaulaute options
227+
// evaluate options
228228
for _, opt := range opts {
229229
opt(rng, frame)
230230
}

op-proposer/proposer/abi_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func TestManualABIPacking(t *testing.T) {
8080
txData, err := proposeL2OutputTxData(l2ooAbi, output)
8181
require.NoError(t, err)
8282

83-
// set a gas limit to disable gas estimation. The invariantes that the L2OO tries to uphold
83+
// set a gas limit to disable gas estimation. The invariants that the L2OO tries to uphold
8484
// are not maintained in this test.
8585
opts.GasLimit = 100_000
8686
tx, err := l2oo.ProposeL2Output(

op-service/eth/ssz_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ func TestMarshalUnmarshalExecutionPayloadEnvelopes(t *testing.T) {
427427
ExecutionPayload: createPayloadWithWithdrawals(&types.Withdrawals{}),
428428
}
429429

430-
missingExecutionPaylaod := &ExecutionPayloadEnvelope{
430+
missingExecutionPayload := &ExecutionPayloadEnvelope{
431431
ParentBeaconBlockRoot: &hash,
432432
ExecutionPayload: nil,
433433
}
@@ -439,7 +439,7 @@ func TestMarshalUnmarshalExecutionPayloadEnvelopes(t *testing.T) {
439439
}{
440440
{"ValidInputSucceeds", validInput, nil},
441441
{"MissingHashFailsToSerialize", missingHash, ErrMissingData},
442-
{"MissingExecutionDataFailsToSerialize", missingExecutionPaylaod, ErrMissingData},
442+
{"MissingExecutionDataFailsToSerialize", missingExecutionPayload, ErrMissingData},
443443
}
444444

445445
for _, test := range tests {

op-service/txmgr/txmgr_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func (*mockBackend) ChainID(ctx context.Context) (*big.Int, error) {
305305

306306
// TransactionReceipt queries the mockBackend for a mined txHash. If none is found, nil is returned
307307
// for both return values. Otherwise, it returns a receipt containing the txHash, the gasFeeCap
308-
// used in GasUsed, and the blobFeeCap in CumuluativeGasUsed to make the values accessible from our
308+
// used in GasUsed, and the blobFeeCap in CumulativeGasUsed to make the values accessible from our
309309
// test framework.
310310
func (b *mockBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) {
311311
b.mu.RLock()

packages/contracts-bedrock/test/L2/L2StandardBridge.t.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ contract L2StandardBridge_BridgeERC20To_Test is PreBridgeERC20To {
520520
}
521521

522522
contract L2StandardBridge_Bridge_Test is Bridge_Initializer {
523-
/// @dev Tests that `finalizeBridgeETH` reverts if the receipient is the other bridge.
523+
/// @dev Tests that `finalizeBridgeETH` reverts if the recipient is the other bridge.
524524
function test_finalizeBridgeETH_sendToSelf_reverts() external {
525525
vm.mockCall(
526526
address(l2StandardBridge.messenger()),
@@ -533,7 +533,7 @@ contract L2StandardBridge_Bridge_Test is Bridge_Initializer {
533533
l2StandardBridge.finalizeBridgeETH{ value: 100 }(alice, address(l2StandardBridge), 100, hex"");
534534
}
535535

536-
/// @dev Tests that `finalizeBridgeETH` reverts if the receipient is the messenger.
536+
/// @dev Tests that `finalizeBridgeETH` reverts if the recipient is the messenger.
537537
function test_finalizeBridgeETH_sendToMessenger_reverts() external {
538538
vm.mockCall(
539539
address(l2StandardBridge.messenger()),

0 commit comments

Comments
 (0)