Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: yingshanghuangqiao <yingshanghuangqiao@foxmail.com>
  • Loading branch information
yingshanghuangqiao committed Jul 22, 2024
1 parent 7a3ba7e commit e674c20
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit e674c20

Please sign in to comment.