Make #[transaction]
to work on functions not returning Result<T, E>
#7
Labels
enhancement
New feature or request
Currently,
#[transaction]
can only be used on async functions which return aResult<T, E>
. This let's Balter keep track of the error-rate.However, certain transactions it might not make any sense to return a
Result
, and this becomes an unnecessary type restriction. Unfortunately I don't think this is trivial to support. If we have a#[transaction]
be anything which returnsimpl TransactionOutput
, then I think the options are limited:Result
)#[transaction]
macro to do more code-gen to make this viableFrom what I understand of the issue, (3) is the most viable.
The text was updated successfully, but these errors were encountered: