bigchaindb / bigchaindb/cryptoconditions
Why is Condition a metaclass?
Open
question
- Dominant language
- Python
- Stars
- 73
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
On a related note, why not provide an `__init__` to `Condition`?
Such that instead of the following
```python
condition = Condition()
condition.type_id = type_id
condition.bitmask = bitmask
condition.hash = _hash
condition.max_fulfillment_length = max_fulfillment_length
```
we could simply do:
```python
condition = Condition(
type_id=self.type_id,
bitmask=self.bitmask,
hash=_hash,
max_fulfillment_length=max_fulfillment_length,
)
Contributor guide
Assessment
This issue has not been assessed yet.