`register_contract` should accept `contract_type` as string and validate internally
Closed this issue · 1 comments
zomglings commented
Currently, validation is being performed by the callers, which means that validation code is duplicated.
Not a big deal with only two current entrypoints - CLI and API handlers.
But it might be better for there to be a single point of failure for validation errors.
Need to consider this a bit more, though.
zomglings commented
Won't fix - it is too important to reflect enum status in CLI and API.