Skip to content

platform-wallet: classify a failed funding-address read in the identity top-up as not sent #6287

Backlog

Description

@romchornyi

Expected Behavior

topUpIdentityFromAddresses (FFI and Swift) reports a failure of the funding-address read (fetch_inputs_with_nonce, run after the recipient lookup and before building or signing) as not sent, with a delivery class the host can read, so the app can offer Retry.

Current Behavior

At 59fd81f181 a transport error in that read goes through top_up_error as a generic SDK error and crosses the FFI as code 99. The payment-class work in #5928 tags NeverDelivered from the broadcast, not from this read, so the error classifies as MaybeSent. The wallet app then shows "Send in progress" and withholds Retry for a payment that was never built.

Possible Solution

Give the funding-address read its own not-sent class in rs-platform-wallet, carry it through the FFI and the Swift and Kotlin SDKs, and test the case where the recipient read succeeds and the funding-address read fails. Code 20 (submitted, unconfirmed) stays maybe-sent.

Context

dashpay/dashwallet-ios#1486 (now #1502), review finding "A funding-address lookup timeout shows Send in progress even though nothing was sent", deferred to Platform.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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