瀏覽代碼

Remove outdated note about virtual view functions (#4014)

Francisco 2 年之前
父節點
當前提交
591c12d22d
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      docs/modules/ROOT/pages/extending-contracts.adoc

+ 0 - 2
docs/modules/ROOT/pages/extending-contracts.adoc

@@ -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