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

chore: fix some comments #3476

Merged
merged 1 commit into from
Jul 22, 2024
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 packages/testutil/peering_net_behaviour.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type peeringNetUnreliable struct {
log *logger.Logger
}

// NewPeeringNetReliable constructs the PeeringNetBehavior.
// NewPeeringNetUnreliable constructs the PeeringNetBehavior.
func NewPeeringNetUnreliable(deliverPct, repeatPct int, delayFrom, delayTill time.Duration, log *logger.Logger) PeeringNetBehavior {
return &peeringNetUnreliable{
deliverPct: deliverPct,
Expand Down
2 changes: 1 addition & 1 deletion packages/testutil/testlogger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type TestingT interface { // Interface so there's no need to pass the concrete t
Name() string
}

// NewLogger produces a logger adjusted for test cases.
// NewSimple produces a logger adjusted for test cases.
func NewSimple(debug bool) *logger.Logger {
cfg := zap.NewDevelopmentConfig()
cfg.EncoderConfig.EncodeTime = zapcore.TimeEncoderOfLayout("04:05.000")
Expand Down
2 changes: 1 addition & 1 deletion packages/vm/core/governance/governanceimpl/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func setFeePolicy(ctx isc.Sandbox) dict.Dict {
return nil
}

// getFeeInfo returns fee policy in serialized form
// getFeePolicy returns fee policy in serialized form
func getFeePolicy(ctx isc.SandboxView) dict.Dict {
gp := governance.MustGetGasFeePolicy(ctx.StateR())

Expand Down
2 changes: 1 addition & 1 deletion packages/vm/gas/feepolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (p *FeePolicy) FeeFromGasBurned(gasUnits, availableTokens uint64, gasPrice
return fee - sendToValidator, sendToValidator
}

// FeeFromGasWithGasPerToken calculates the gas fee using the given gasPrice
// FeeFromGasWithGasPrice calculates the gas fee using the given gasPrice
// (expressed in ISC base tokens with 'full decimals').
func FeeFromGasWithGasPrice(gasUnits uint64, gasPrice *big.Int, l1BaseTokenDecimals uint32) uint64 {
feeFullDecimals := new(big.Int).SetUint64(gasUnits)
Expand Down
Loading