Skip to content

TokenNetworkRegistry should check chain_id before calling createERC20TokenNetwork() #4886

@pirapira

Description

@pirapira

TokenNetworkRegistry class's add_token() calls createERC20TokenNetwork() function of the TokenNetworkRegistry smart contract. This call fails when chain_id stored in the smart contract is zero.

This issue keeps track of adding

  • a precondition check against zero chain_id
  • a post-failure check against zero chain_id

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