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

Use Solidity custom errors #1097

Closed
nambrot opened this issue Sep 20, 2022 · 5 comments
Closed

Use Solidity custom errors #1097

nambrot opened this issue Sep 20, 2022 · 5 comments
Labels

Comments

@nambrot
Copy link
Contributor

nambrot commented Sep 20, 2022

Solidity 0.8 introduced more gas efficient custom errors: https://blog.soliditylang.org/2021/04/21/custom-errors/

@yorhodes tried to do it when deploying v1 but ran into issues with existing code not being able to handle custom errors well. IIUC, this actually still would be an issue anyways with application contracts containing those, but luckily ethers-rs recently seemed to have fixed it gakonst/ethers-rs#1549

@yorhodes
Copy link
Member

yorhodes commented Sep 20, 2022

Should reapply changes from #538

@asaj
Copy link
Contributor

asaj commented Nov 30, 2022

@nambrot @yorhodes do we still want to do this? Custom errors are significantly less readable, than strings, no?

@yorhodes
Copy link
Member

@nambrot @yorhodes do we still want to do this? Custom errors are significantly less readable, than strings, no?

only less readable if the source code isn't verified

@nambrot
Copy link
Contributor Author

nambrot commented Dec 1, 2022

I would say we shouldn't do this, tooling would need to have access to source code to indicate the error, i dont' think the gas savings are worth it

@avious00 avious00 added the dx label Sep 8, 2023
@avious00 avious00 moved this to icebox in Hyperlane Tasks Sep 8, 2023
@nambrot
Copy link
Contributor Author

nambrot commented Mar 1, 2024

@yorhodes I'm just gonna assume i have convinced you :P

@nambrot nambrot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2024
@github-project-automation github-project-automation bot moved this from Icebox to Done in Hyperlane Tasks Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

4 participants