...个modifier特别有意思,它要求msg.sender==address(this), 这特别像inernal的感觉。 这与openzeppelin再UUPS中实现的onlyProxy并不是一个思路。
```js
modifier authorized() {
require(msg.sender == address(this), "Method can only be called from this contract");
_;...
...免遭遇此类攻击。更多的安全知识建议阅读慢雾出品的《区块链黑暗森林自救手册》:https://github.com/slowmist/Blockchain-dark-forest-selfguard-handbook/blob/main/README_CN.md
Ps. 感谢 hip 、ScamSniffer 提供的支持。
相关链接:
https://www...