This should trigger the challenge flow on the contract, remove the intermediary from the UI, disable the L2 pay button.
(In a full implementation we would need to follow up with some other contract calls to make the funds spendable. In the backend, we would want to detect this "finalized" mode, and route user operations directly to the entrypoint (rather than the intermediary).
For demo purposes, let's just kick of the process, and freeze the buttons in the UI / display a modal or somethign "regaining control of your wallet... hourglass.. this will take 7 minutes...."
In the UI, we have an "eject" button.
This should trigger the challenge flow on the contract, remove the intermediary from the UI, disable the L2 pay button.
(In a full implementation we would need to follow up with some other contract calls to make the funds spendable. In the backend, we would want to detect this "finalized" mode, and route user operations directly to the entrypoint (rather than the intermediary).
For demo purposes, let's just kick of the process, and freeze the buttons in the UI / display a modal or somethign "regaining control of your wallet... hourglass.. this will take 7 minutes...."