You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
platform-wallet: record an unconfirmed data contract update and reconcile it before signing a replacement #6067
When a data contract update comes back unconfirmed (ErrorTransactionBroadcastUnconfirmed, code 20), it may have executed or may still land. Nothing outside the screen that sent it remembers that:
The Settings transition builder (TransitionDetailView.executeDataContractUpdate) and the Kotlin UpdateContractScreen have no hold at all.
A second update signed while the first is still pending cannot apply twice: the update is bound to the reviewed version, and Drive refuses the loser. But the loser can be refused for a fee, and the app can't tell the user whether the first one landed.
Proposal
Have rs-platform-wallet record an unconfirmed contract update: owner, contract id, base version and transition hash. Before it signs another update of the same contract, it resolves the record, for example through the status-by-hash lookup in #5269. Swift and Kotlin would only read that state; a hold that outlives a screen needs a rule for when it lifts, and that rule belongs in Rust.
Context
Raised in review of #6053 and deferred there (thepastaclaw thread on UpdateContractView.swift). Related: #5269.
Activity