Skip to content

Commit

Permalink
Remove outdated note about virtual view functions (#4014)
Browse files Browse the repository at this point in the history
(cherry picked from commit 591c12d)
  • Loading branch information
frangio committed Jan 31, 2023
1 parent d13316e commit c018c9c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/modules/ROOT/pages/extending-contracts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ contract ModifiedAccessControl is AccessControl {

The `super.revokeRole` statement at the end will invoke ``AccessControl``'s original version of `revokeRole`, the same code that would've run if there were no overrides in place.

NOTE: As of v3.0.0, `view` functions are not `virtual` in OpenZeppelin, and therefore cannot be overridden. We're considering https://github.com/OpenZeppelin/openzeppelin-contracts/issues/2154[lifting this restriction] in an upcoming release. Let us know if this is something you care about!

[[using-hooks]]
== Using Hooks

Expand Down

0 comments on commit c018c9c

Please sign in to comment.