Skip to content

chore: fix the linter errors#8771

Closed
aljo242 wants to merge 2 commits intomainfrom
lint-fix
Closed

chore: fix the linter errors#8771
aljo242 wants to merge 2 commits intomainfrom
lint-fix

Conversation

@aljo242
Copy link
Contributor

@aljo242 aljo242 commented Feb 2, 2026

No description provided.

@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

❌ Patch coverage is 85.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.57%. Comparing base (31c6922) to head (6336c16).

Files with missing lines Patch % Lines
...ules/apps/transfer/internal/telemetry/telemetry.go 0.00% 2 Missing ⚠️
...odules/light-clients/08-wasm/types/gas_register.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8771   +/-   ##
=======================================
  Coverage   66.57%   66.57%           
=======================================
  Files         326      326           
  Lines       17103    17103           
=======================================
  Hits        11386    11386           
  Misses       5021     5021           
  Partials      696      696           
Flag Coverage Δ
08-wasm 64.81% <0.00%> (ø)
ibc-go 66.63% <89.47%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aljo242 aljo242 requested a review from srdtrk February 3, 2026 15:24
Comment on lines +9 to +10
var invalidAddress = "invalid"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use ibctesting.InvalidID instead

"failure: invalid sender address",
func() {
msg.Sender = "invalid"
msg.Sender = invalidAddress
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto: We can use ibctesting.InvalidID instead

Comment on lines 29 to +30
invalidClientID = "invalid"
invalidPort = "invalid-port"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto: We can use ibctesting.InvalidID instead

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are critical functions that were audited. Would be good to not modify if not needed.

I only see some semantic changes that doesn't provide any safetly/utility.

if reply.Result.Ok != nil {
msgLen += len(reply.Result.Ok.Data)
var attrs []wasmvmtypes.EventAttribute
attrs := make([]wasmvmtypes.EventAttribute, 0, msgLen)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't even think this is correct. Neither the length nor capacity should be msgLen. You can see in the for loop below, that to determine the length, you probably need to a for loop first. Here, having variable length feels easier to read and reason about

@aljo242
Copy link
Contributor Author

aljo242 commented Feb 5, 2026

closing this

@aljo242 aljo242 closed this Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants