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

⚡️ Would using try{}catch{} around authority.canCall() instead of memorizing authority and checking if 0 save gas? #22

Closed
transmissions11 opened this issue Sep 28, 2021 · 1 comment

Comments

@transmissions11
Copy link
Owner

No description provided.

@transmissions11
Copy link
Owner Author

Ah ok I think the reason I didn’t do this as Solidity’s extcodehash check happens before the call and will not be caught by a try-catch.

Could maybe avoid by doing a low level call? But then we’d have to call extcodesize ourselves?

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