Skip to content
New issue

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

[ol types] Error types in rust for known 0L errors #933

Open
0o-de-lally opened this issue Jan 4, 2022 · 0 comments
Open

[ol types] Error types in rust for known 0L errors #933

0o-de-lally opened this issue Jan 4, 2022 · 0 comments

Comments

@0o-de-lally
Copy link
Collaborator

Create a list of known errors which 0L code throws from the MoveVM on transaction failures. This would allow us to create better messages and control flow for client tools like tower, carpe, and txs.

Here's where txs defines a transaction error.
https://github.com/OLSF/libra/blob/b51ce2c41b98bc3cccd5aea5fbda7618da8a8c21/ol/txs/src/submit_tx.rs#L69-L78

We would need an Enum of OLErrors, which would have several variants: TowerUpperBound, TowerWrongOrder, etc. which will map to an error number on Move side.

This was referenced Jan 4, 2022
@0o-de-lally 0o-de-lally changed the title [Feature Request] Error Enum in rust for known 0L errors. [txs] Error Enum in rust for known 0L errors Jan 4, 2022
@0o-de-lally 0o-de-lally changed the title [txs] Error Enum in rust for known 0L errors [tools] Error Enum in rust for known 0L errors Jan 4, 2022
@0o-de-lally 0o-de-lally changed the title [tools] Error Enum in rust for known 0L errors [ol types] Error types in rust for known 0L errors Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant