We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SettlementEncoder
self
Currently there is an implicit assumption that if a SettlementEncoder method fails, then it is in a undefined state and shouldn't be used.
The correct way to describe this with the type system would be to change the method signatures to be:
fn do_thing_that_can_fail(mut self, ...) -> Result<Self>
This way, if there is an error, the we would no longer have access to the encoder.
Original issue gnosis/gp-v2-services#501 by @nlordell
The text was updated successfully, but these errors were encountered:
This issue has been marked as stale because it has been inactive a while. Please update this issue or it will be automatically closed.
Sorry, something went wrong.
No branches or pull requests
Currently there is an implicit assumption that if a
SettlementEncoder
method fails, then it is in a undefined state and shouldn't be used.The correct way to describe this with the type system would be to change the method signatures to be:
This way, if there is an error, the we would no longer have access to the encoder.
The text was updated successfully, but these errors were encountered: