Skip to content

TokenNetworkRegistry proxy should check settlement_timeout_min is not zero #4888

@pirapira

Description

@pirapira

Smart contract proxies should try to avoid sending transactions that are going to fail. Currently, TokenNetworkRegistry's proxy sends createERC20TokenNetwork() transactions without checking the value of settlement_timeout_min. If settlement_timeout_min is zero, the transaction fails because TokenNetwork's constructor fails.

Also, when a transaction fails in a block or when gas estimation fails, a similar check helps to diagnose the problem.

This issue keeps track of adding these checks in TokenNetworkRegistry's proxy.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions