Skip to content

[Bug]: 'Classic' bitcoin denomination breaks CJIT transfer flow #2480

@catch-21

Description

@catch-21

Describe the bug

When using 'Classic' bitcoin denomination setting, an error is seen due to use of float instead of integer:

Transaction Failed
Failed to estimate channel order fee.
[{"type":"Body","errors":{"issues": [{"code":"invalid_type","expected":"integer","received":"f loat","message":"Expected integer, received float","path": ["IspBalanceSat"]}],"name":"ZodError"}}]
  1. We should never show this error because we are passing the expected value format to lsp
  2. We should handle errors like this in a user-friendly way. Never expose the raw response.
1000011823.mp4

Reproduce

  1. Using 'Classic' Bitcoin Denomination (in the general settings)
  2. Attempt CJIT fllow: Advanced -> Lightning Connections -> Add Connection -> Use Other Wallet
  3. Observe immediate toast error

Screenshots / Recording

No response

Operating system

Android 14

Bitkit version

1.0.9 (147)

Log output

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions