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

Revert with custom errors causes a failure to parse the compilation result #178

Open
Subway2023 opened this issue Feb 7, 2025 · 0 comments

Comments

@Subway2023
Copy link

solc does not throw an error, solang explicitly points out that it is unsupported and throws an error, but sold causes a crash. Therefore, I believe the error handling in sold needs improvement.

test.sol

error E();
function f() pure {
    revert E();
}
sold test.sol

Failed to parse compilation result
solang compile --target solana test.sol

  ┌─ test.sol:3:5
  │
3 │     revert E();
  │     ^^^^^^^^^^
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