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

Make all public and internal functions virtual #359

Merged
merged 1 commit into from
Jul 9, 2022

Conversation

Vectorized
Copy link
Collaborator

For #358

To be honest, part of my OCD is triggered when functions that are dangerous to be overridden are marked virtual.

But a wise comment from a comrade soothed me.
Screen Shot 2022-07-08 at 11 43 15 PM

https://twitter.com/rage_pit/status/1545423297667555328?s=20&t=o7Ijl8TrbjRSpXshoqIozA

OpenZeppelin and Solmate recently marked their functions as virtual too.

@Vectorized Vectorized changed the title Make all public and internal functions virtual Make all public and internal functions as virtual Jul 8, 2022
@Vectorized Vectorized changed the title Make all public and internal functions as virtual Make all public and internal functions virtual Jul 8, 2022
@Vectorized Vectorized requested a review from cygaar July 8, 2022 16:34
@sillytuna
Copy link

I came here specifically to ask for this.

Reasoning - quirky token id system needs extra functions overriding. I'd rather do it in a way which keeps me in sync.

@Vectorized Vectorized merged commit 7819fc3 into chiru-labs:main Jul 9, 2022
@Vectorized Vectorized deleted the feature/virtual branch July 9, 2022 07:51
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

Successfully merging this pull request may close these issues.

3 participants