Remove the Default
constraint for the Err
associated type of the Write trait
#198
Labels
[Type] Change Request
Some visible functionality should be change.
The concordium_contracts_common::Write has a
Default
constraint.This is not really essential, and I think the only reason it is there is simplicity. It is used in the
write_all
implementation, where it can and should just be removed and the inner error should be propagated.It is also used in
schema.rs
for some functions, such as serializing size length. There it should be replaced by custom enums that will also provide better error messages that will point to a precise source of an error.The text was updated successfully, but these errors were encountered: