TokenNetworkRegistry proxy checks against secret_registry_address zero#4883
TokenNetworkRegistry proxy checks against secret_registry_address zero#4883pirapira wants to merge 3 commits into
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4883 +/- ##
===========================================
+ Coverage 80.77% 80.81% +0.04%
===========================================
Files 120 119 -1
Lines 14515 14461 -54
Branches 2238 2233 -5
===========================================
- Hits 11724 11687 -37
+ Misses 2133 2113 -20
- Partials 658 661 +3
Continue to review full report at Codecov.
|
rakanalh
left a comment
There was a problem hiding this comment.
According to the contracts:
There is no require/assert for the secret registry address when createERC20TokenNetwork is called.
The assert exists in the constructor of the contract which means that if that fails there would be no usable instance of the contracts.
I don't think this change in this PR is required.
|
@rakanalh that function deploys When the |
secret_registry_address being zero.
TokenNetworkRegistry's secret_registry_address changes to zero.
a089a68 to
172a391
Compare
172a391 to
b33222d
Compare
|
#4936 deals with the problem I was solving here. |
Fixes: #4882
Description
Please, describe what this PR does in detail:
Before this PR, TokenNetworkRegistry sent a transaction even when secret_registry_address is zero, so the constructor of TokenNetwork would fail. After this PR, such transactions will not be sent. Moreover, when a sent transaction fails and secret_registry_address is zero, the proxy raises a
RaidenUnrecoverableErrorbecause the proxy is probably talking to a wrong contract.PR review check list
Quality check list that cannot be automatically verified.