Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos #1912

Merged
merged 5 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion arbitrator/prover/test-cases/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func main() {
verified, err = MerkleSample(data, -1)
if err != nil {
if verified {
panic("succeded to verify proof invalid")
panic("succeeded to verify proof invalid")
}
}

Expand Down
2 changes: 1 addition & 1 deletion arbnode/dataposter/data_poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
// is initialized with specified sender/signer and keeps nonce of that address
// as it posts transactions.
// Transactions are also saved in the queue when it's being sent, and when
// persistant storage is used for the queue, after restarting the node
// persistent storage is used for the queue, after restarting the node
// dataposter will pick up where it left.
// DataPoster must be RLP serializable and deserializable
type DataPoster struct {
Expand Down
2 changes: 1 addition & 1 deletion arbos/addressSet/addressSet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func TestRectifyMapping(t *testing.T) {
// Non owner's should not be able to call RectifyMapping
err := aset.RectifyMapping(testhelpers.RandomAddress())
if err == nil {
Fail(t, "RectifyMapping was succesfully called by non owner")
Fail(t, "RectifyMapping was successfully called by non owner")
}

// Corrupt the list and verify if RectifyMapping fixes it
Expand Down
2 changes: 1 addition & 1 deletion arbos/l1pricing/l1pricing.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const (
InitialInertia = 10
InitialPerUnitReward = 10
InitialPerBatchGasCostV6 = 100_000
InitialPerBatchGasCostV12 = 210_000 // overriden as part of the upgrade
InitialPerBatchGasCostV12 = 210_000 // overridden as part of the upgrade
)

// one minute at 100000 bytes / sec
Expand Down
2 changes: 1 addition & 1 deletion arbos/tx_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (p *TxProcessor) EndTxHook(gasLeft uint64, success bool) {
err = util.TransferBalance(&refundFrom, &inner.RefundTo, toRefundAddr, p.evm, scenario, "refund")
if err != nil {
// Normally the network fee address should be holding any collected fees.
// However, in theory, they could've been transfered out during the redeem attempt.
// However, in theory, they could've been transferred out during the redeem attempt.
// If the network fee address doesn't have the necessary balance, log an error and don't give a refund.
log.Error(errLog, "err", err, "feeAddress", refundFrom)
}
Expand Down
4 changes: 2 additions & 2 deletions arbos/util/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/offchainlabs/nitro/util/arbmath"
)

// TransferBalance represents a balance change occuring aside from a call.
// TransferBalance represents a balance change occurring aside from a call.
// While most uses will be transfers, setting `from` or `to` to nil will mint or burn funds, respectively.
func TransferBalance(
from, to *common.Address,
Expand All @@ -39,7 +39,7 @@ func TransferBalance(
}
if tracer := evm.Config.Tracer; tracer != nil {
if evm.Depth() != 0 && scenario != TracingDuringEVM {
// A non-zero depth implies this transfer is occuring inside EVM execution
// A non-zero depth implies this transfer is occurring inside EVM execution
log.Error("Tracing scenario mismatch", "scenario", scenario, "depth", evm.Depth())
return errors.New("tracing scenario mismatch")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/seq-coordinator-manager/seq-coordinator-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var addSeqForm = tview.NewForm()
var priorityForm = tview.NewForm()
var nonPriorityForm = tview.NewForm()

// Sequencer coordinator managment UI data store
// Sequencer coordinator management UI data store
type manager struct {
redisCoordinator *rediscoordinator.RedisCoordinator
prioritiesSet map[string]bool
Expand Down
2 changes: 1 addition & 1 deletion precompiles/precompile.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func MakePrecompile(metadata *bind.MetaData, implementer interface{}) (addr, *Pr
emitCost := gascost(args)
cost := emitCost[0].Interface().(uint64) //nolint:errcheck
if !emitCost[1].IsNil() {
// an error occured during gascost()
// an error occurred during gascost()
return []reflect.Value{emitCost[1]}
}
if err := callerCtx.Burn(cost); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion system_tests/seq_coordinator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func TestRedisSeqCoordinatorPriorities(t *testing.T) {
}
}

// sequencing suceeds only on the leder
// sequencing succeeds only on the leder
for i := arbutil.MessageIndex(0); i < messagesPerRound; i++ {
if sequencer := trySequencingEverywhere(); sequencer != currentSequencer {
Fatal(t, "unexpected sequencer. expected: ", currentSequencer, " got ", sequencer)
Expand Down
Loading