Eitan-Lev / DepositContract

Payment channels using Solidity and SGX. Truffle for tests and infrastructure
GNU General Public License v3.0
7 stars 2 forks source link

Re-routing user after a contract self destruct #10

Open Amit-Weiss opened 5 years ago

Amit-Weiss commented 5 years ago

After a channel is closed, we perform a self destruct to its contract. Due to that, we cannot re-route to the "show" page, since the contract no longer exists and it will show nothing. This issue needs to be addressed, because we still want the user to view data for at least a little after.

Amit-Weiss commented 5 years ago

Using the new template for bugs

Describe the bug After a channel is closed, we perform a self destruct to its contract. Due to that, we cannot re-route to the "show" page, since the contract no longer exists and it will show nothing.

To Reproduce Steps to reproduce the behavior:

  1. Create a new Deposit contract, follow all the stages up to (and including) closing the channel.
  2. Through the manage as initiator/counterpart page try to draw the remaining balance.
  3. Observe you stay on the same page.
  4. When you try to enter the URL to the show page of the contract you will not be able to do so.

Expected behavior We expect to see the contract as closed and funds withdrawn, to know that everything went as expected.

Desktop (please complete the following information):