Skip to content

fix(apps/ica): default packet generation to protobuf - #9154

Open
zakazaka95 wants to merge 1 commit into
lfdt-ibc:mainfrom
zakazaka95:fix/ica-cli-default-encoding
Open

zakazaka95 wants to merge 1 commit into
lfdt-ibc:mainfrom
zakazaka95:fix/ica-cli-default-encoding

Conversation

@zakazaka95

@zakazaka95 zakazaka95 commented Nov 6, 2026 •

Copy link
Copy Markdown

Description

The generate-packet-data help, docs and example promise default protobuf encoding, but the encoding flag defaults to an empty string rejected by RunE. The documented invocation fails unless --encoding is supplied.

Set --encoding default to the existing EncodingProtobuf constant. Explicit invalid and empty values stay rejected. Execute the real exported host command tree with omitted, proto3, proto3json, invalid and explicitly empty flags. Round-trip each successful packet into MsgSend and verify memo/type/addresses/amount.

Validation

  • The regression fails on unchanged production code; go test -mod=readonly ./modules/apps/27-interchain-accounts/host/client/cli passes with this patch.
  • CI-pinned golangci-lint v2.11.3 with Go1.26.10: zero issues in the owning package.
  • make format, LEDGER_ENABLED=false make build, make lint-docs and make build-docs pass.
  • Full pinned lint across all modules passed in the Linux validation below.

Checklist

  • One logical change, diff kept as small as practical
  • Commits signed off for the DCO (git commit -s), matching the commit author identity
  • AI assistance disclosed with an Assisted-By trailer in the commit body
  • Commit messages follow Conventional Commits
  • Tests cover expected and error paths
  • CI is green
  • SPDX license header on new files (or no new files)
  • Pull request title follows Conventional Commits
  • No architecture, public interface or spec change requiring an ADR

AI assistance: OpenAI Codex was used for the implementation, tests and this description.

Linux validation

Fork validation run passed for exact source commit 9724ada476f494ebc4a12dc1e43a8ad48d1bac05. Checks: Build and lint PR 9154; Documentation PR 9154; Unit tests PR 9154.

Use the documented protobuf default when --encoding is omitted.
Round-trip packet generation through the host command and preserve explicit
encoding validation.

Assisted-By: OpenAI Codex
Signed-off-by: Zaksans <yyzarijayy@gmail.com>
@zakazaka95
zakazaka95 marked this pull request as ready for review November 6, 2026 23:24
@zakazaka95
zakazaka95 requested a review from a team as a code owner November 6, 2026 23:24
@dhfang

dhfang commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@greptile review

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Sets the default generate-packet-data encoding to protobuf, matching the command help and documented example.

  • ICA packet generation now uses protobuf when encoding is omitted.

No actionable issues found. Tests and build checks were not run during this review.

Reviews (1) · Last reviewed commit: "fix(apps/ica): default packet generation..." · Reviewed by Greptile

This branch has not been deployed

No deployments
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