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

Refreshing a channel show page disables initiator and coutnerpart abilities #9

Open Amit-Weiss opened 5 years ago

Amit-Weiss commented 5 years ago

Whenever you view a channel and look into its "show" page (that contains all the details about a channel) the called checks the address of the caller to see whether it is the initiator or the counterpart of the channel. After this check, the buttons that appear correspond to the check result. After refreshing the page, this check is not performed again and the user will appear as "other" to the contract. A possible reason for that is that the code for checking the user is located inside getInitialProps function.