Skip to content

Use taxGasMeter in sdk to handle tax2Gas logic #1138

Use taxGasMeter in sdk to handle tax2Gas logic

Use taxGasMeter in sdk to handle tax2Gas logic #1138

Triggered via pull request July 23, 2024 08:00
Status Failure
Total duration 1m 13s
Artifacts

lint.yml

on: pull_request
golangci-lint
51s
golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
golangci-lint: x/tax2gas/utils/utils.go#L108
assignOp: replace `gasRemaining = gasRemaining - (taxGas - taxGasRemaining)` with `gasRemaining -= (taxGas - taxGasRemaining)` (gocritic)
golangci-lint: x/tax2gas/utils/utils.go#L117
File is not `gofumpt`-ed (gofumpt)
golangci-lint: x/tax2gas/utils/utils.go#L124
naked return in func `CalculateTaxesAndPayableFee` with 50 lines of code (nakedret)
golangci-lint: x/tax2gas/utils/utils.go#L115
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint: x/tax2gas/utils/utils.go#L94
ineffectual assignment to taxGasRemaining (ineffassign)
golangci-lint: x/tax2gas/types/expected_keeper.go#L5
File is not `gofumpt`-ed (gofumpt)
golangci-lint: x/tax2gas/types/expected_keeper.go#L7
File is not `gofumpt`-ed (gofumpt)
golangci-lint: x/tax2gas/ante/fee_test.go#L265
File is not `gofumpt`-ed (gofumpt)
golangci-lint: x/tax2gas/ante/fee_test.go#L282
File is not `gofumpt`-ed (gofumpt)
golangci-lint: x/tax2gas/ante/fee_test.go#L301
File is not `gofumpt`-ed (gofumpt)
golangci-lint
Restore cache failed: Dependencies file is not found in /home/runner/work/core/core. Supported file pattern: go.sum