Skip to content

Commit fdb279d

Browse files
chore: fix some comments (#1431)
Signed-off-by: chuangjinglu <[email protected]> Co-authored-by: Ceyhun Onur <[email protected]>
1 parent 70428c8 commit fdb279d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cmd/simulator/config/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,5 @@ func addSimulatorFlags(fs *pflag.FlagSet) {
125125
fs.String(LogLevelKey, "info", "Specify the log level to use in the simulator")
126126
fs.Uint64(BatchSizeKey, 100, "Specify the batchsize for the worker to issue and confirm txs")
127127
fs.Uint64(MetricsPortKey, 8082, "Specify the port to use for the metrics server")
128-
fs.String(MetricsOutputKey, "", "Specify the file to write metrics in json format, or empy to write to stdout (defaults to stdout)")
128+
fs.String(MetricsOutputKey, "", "Specify the file to write metrics in json format, or empty to write to stdout (defaults to stdout)")
129129
}

core/evm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func NewEVMBlockContext(header *types.Header, chain ChainContext, author *common
7272
// NewEVMBlockContextWithPredicateResults creates a new context for use in the EVM with an override for the predicate results that is not present
7373
// in header.Extra.
7474
// This function is used to create a BlockContext when the header Extra data is not fully formed yet and it's more efficient to pass in predicateResults
75-
// directly rather than re-encode the latest results when executing each individaul transaction.
75+
// directly rather than re-encode the latest results when executing each individual transaction.
7676
func NewEVMBlockContextWithPredicateResults(header *types.Header, chain ChainContext, author *common.Address, predicateResults *predicate.Results) vm.BlockContext {
7777
return newEVMBlockContext(header, chain, author, predicateResults)
7878
}

core/predicate_check_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func TestCheckPredicate(t *testing.T) {
244244
},
245245
expectedErr: nil,
246246
},
247-
"two predicates niether named by access list": {
247+
"two predicates neither named by access list": {
248248
gas: 61600,
249249
predicateContext: predicateContext,
250250
createPredicates: func(t testing.TB) map[common.Address]precompileconfig.Predicater {

precompile/contracts/rewardmanager/contract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func GetStoredRewardAddress(stateDB contract.StateDB) (common.Address, bool) {
167167
return common.BytesToAddress(val.Bytes()), val == allowFeeRecipientsAddressValue
168168
}
169169

170-
// StoredRewardAddress stores the given [val] under rewardAddressStorageKey.
170+
// StoreRewardAddress stores the given [val] under rewardAddressStorageKey.
171171
func StoreRewardAddress(stateDB contract.StateDB, val common.Address) {
172172
stateDB.SetState(ContractAddress, rewardAddressStorageKey, common.BytesToHash(val.Bytes()))
173173
}

precompile/contracts/rewardmanager/contract_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ var (
366366
ReadOnly: true,
367367
ExpectedErr: vmerrs.ErrWriteProtection.Error(),
368368
},
369-
"readOnly set reward addresss with allowed role fails": {
369+
"readOnly set reward address with allowed role fails": {
370370
Caller: allowlist.TestEnabledAddr,
371371
BeforeHook: allowlist.SetDefaultRoles(Module.Address),
372372
InputFn: func(t testing.TB) []byte {

0 commit comments

Comments
 (0)