WalletSpendSessionChanged class final
Thrown by the SDK from INSIDE an authorized action when the wallet session changed (a host identity switch / wallet re-open) between the prompt opening and the approval landing — the spend is REFUSED: running it would move the DEAD identity's money while every visible surface already shows the new one, so the user could never see what they just approved. Nothing was signed or broadcast.
Hosts SHOULD deny (or dismiss) any outstanding authorization prompt when they switch identity; this fence is the SDK-side backstop for an approval that lands anyway. If your authorizer surfaces action failures to the user, treat THIS one as a silent no-op — the identity switch already replaced the whole screen context, and "payment failed" would be untrue (no payment was attempted).
MECHANISM: the fence keys off session OBJECT IDENTITY
(identical against walletSessionProvider's value) — the same identity
rule the whole live-sync graph relies on. Never reuse one session object
across identities or swap a facade's inner handle in place: a same-object
identity switch is INVISIBLE to the fence, and for the tokenless calls
(queue, swap execute) that would commit the old identity's spend against
the new identity's wallet.
- Implemented types
Constructors
- WalletSpendSessionChanged()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited