This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
calling account.create
and account.addFeatures
with empty features should Error
#169
Labels
bug
Something isn't working
Describe the bug
Per spec https://github.com/many-protocol/specification/blob/main/attributes/network/cddl/9_account.cddl#L96 and https://github.com/many-protocol/specification/blob/main/attributes/network/cddl/9_account.cddl#L248, calling
account.create
andaccount.addFeatures
should require at least one feature in the set.To Reproduce
Steps to reproduce the behavior:
account.create
oraccount.addFeatures
with an empty set of features.Expected behavior
An error should be returned if an empty set of features is provided.
Additional context
probably need changes here https://github.com/liftedinit/many-framework/blob/main/src/many-ledger/src/module.rs#L49
The text was updated successfully, but these errors were encountered: