Skip to content

fix: register all missing message types in transport typeRegistry#35

Merged
BitHighlander merged 1 commit intomasterfrom
fix/type-registry-all-chains-clean
Mar 30, 2026
Merged

fix: register all missing message types in transport typeRegistry#35
BitHighlander merged 1 commit intomasterfrom
fix/type-registry-all-chains-clean

Conversation

@BitHighlander
Copy link
Copy Markdown
Collaborator

Summary

  • Registers 7 missing protobuf message modules in typeRegistry.ts: Binance, Ethereum, Osmosis, Solana, Tendermint, TON, TRON
  • Fixes "Unknown message type received" errors when the device sends responses for these chains (e.g. OsmosisAddress, BinanceAddress)
  • All 14 messages-*_pb modules from @keepkey/device-protocol are now registered

Root Cause

typeRegistry.ts maps MessageType enum values to their protobuf constructors. When a chain's message module isn't registered, the transport can't deserialize the device response and throws "Unknown message type received".

Test plan

  • tsc --noEmit passes
  • yarn build passes (1.77s)
  • Verify Osmosis getAddress no longer returns "Unknown message type received"
  • Verify Binance, Solana, TON, TRON address derivation works

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

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

Project Deployment Actions Updated (UTC)
hdwallet-sandbox Ready Ready Preview, Comment Mar 30, 2026 2:26am

Request Review

Binance, Ethereum, Osmosis, Solana, Tendermint, TON, and TRON proto
message classes were missing from typeRegistry, causing "Unknown
message type received" errors when the device sent responses for
these chains.
@BitHighlander BitHighlander force-pushed the fix/type-registry-all-chains-clean branch from dd5ff99 to 6d1e5c8 Compare March 30, 2026 02:25
@BitHighlander BitHighlander merged commit 92ea4da into master Mar 30, 2026
3 of 4 checks passed
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