From 63c3dfbea791a552ce1d77ce721257150ecbd9d6 Mon Sep 17 00:00:00 2001 From: Mz1-rc Date: Wed, 22 May 2024 22:42:26 +0800 Subject: [PATCH] Update TRC-005.md (#10) There need to be a "_;" and can not use same Identifier. --- docs/TRC-005.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/TRC-005.md b/docs/TRC-005.md index 69db87d..ecf965b 100644 --- a/docs/TRC-005.md +++ b/docs/TRC-005.md @@ -7,8 +7,10 @@ To hide the status of a privileged address, set it to an unreadable address, or ## Risk Pattern ```solidity -modifier superman() { +address superman; +modifier Superman() { require(superman == _msgSender(), ); + _; } ```