statechannels / SCBridge-Wallet

MIT License
1 stars 2 forks source link

Pop L1 txHash after it succeeds - or an error if it doesn't #179

Closed NiloCK closed 11 months ago

NiloCK commented 11 months ago

This PR maybe makes the ChainPay operation a bit nicer from the user perspective.

When the intermediary observes the mined TX, she now uses the protocol ack pipe to return this txHash. (This is a hack - this ack pipe has been used until now only to return signatures - but the UserOperation protocol doesn't require a returned signature for a state update).

When the client receives the txHash, the client wallet pops a snackbar which displays the txHash.

If the approach is good, we could polish with:

Screencast from 2023-10-20 12:15:13 PM.webm