Skip to content

Update bitbox-api from 0.2.1 to latest version #1032

@TaprootFreak

Description

@TaprootFreak

Description

The bitbox-api dependency is severely outdated (v0.2.1, current: v0.12.0).

Known bug in v0.2.1

ethSupported() incorrectly calls wasm.pairedbitbox_cardanoSupported instead of pairedbitbox_ethSupported, returning false for Multi editions that do support ETH. This bug persists through at least v0.12.0.

Workaround in place: The code now attempts ETH operations directly instead of relying on ethSupported() (see bitbox.hook.ts).

Blocker for upgrade

v0.12.0 uses ESM module resolution (./webhid without .js extension) which is incompatible with the current Webpack/react-app-rewired setup. Upgrading requires either:

  • Configuring Webpack to resolve extensionless ESM imports (via config-overrides.js)
  • Or migrating the build tooling (e.g. to Vite)

Upstream issue

The ethSupported() WASM binding bug should be reported to BitBoxSwiss/bitbox-api-rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions