Skip to content

fix: register Osmosis + Ethereum in transport typeRegistry#36

Closed
BitHighlander wants to merge 1 commit into
masterfrom
fix/type-registry-missing-chains
Closed

fix: register Osmosis + Ethereum in transport typeRegistry#36
BitHighlander wants to merge 1 commit into
masterfrom
fix/type-registry-missing-chains

Conversation

@BitHighlander
Copy link
Copy Markdown
Collaborator

Summary

  • Transport's fromMessageBuffer() fabricated fake Failure("Unknown message type received") for Osmosis responses because OsmosisMessages wasn't in the AllMessages array in typeRegistry.ts
  • The device responded correctly to OsmosisGetAddress (type 1100) but the transport couldn't deserialize the OsmosisAddress response (type 1101) — no constructor registered
  • Same gap for EthereumMessages (needed for EthereumTxMetadata responses in clear-signing flow)
  • Solana, Tron, TON already self-register via hand-rolled classes in their respective files

Test plan

  • wallet.osmosisGetAddress() returns a valid osmo1... address on firmware 7.10.0+
  • wallet.cosmosGetAddress() still works (regression check)
  • Ethereum signing with metadata responses deserialize correctly

…gistry

The transport's fromMessageBuffer() looks up response message types in
messageTypeRegistry to deserialize device responses. Osmosis and Ethereum
protobuf modules were imported by their respective chain files but never
added to the AllMessages array in typeRegistry.ts.

When the device responded to OsmosisGetAddress (type 1100), the transport
couldn't find a constructor for type 1101 (OsmosisAddress), so it
fabricated a fake Failure with "Unknown message type received" — making
it look like a firmware error when the firmware responded correctly.

Same issue affected Ethereum message types that aren't in the base
Messages module (e.g. EthereumTxMetadata responses).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hdwallet-sandbox Ready Ready Preview, Comment Apr 4, 2026 0:02am

Request Review

@BitHighlander
Copy link
Copy Markdown
Collaborator Author

Duplicate — already fixed in PRs #33/#34/#35 (master at 92ea4da). Closing.

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.

1 participant