From 32767a1ab40ac618fb150901212bd37ef40b9268 Mon Sep 17 00:00:00 2001 From: mocha Date: Sat, 10 Aug 2024 22:53:11 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E8=B0=83=E6=95=B4=20DelegateCall=20?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E4=B8=AD=E4=BB=A3=E7=90=86=E5=90=88=E7=BA=A6?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 23_Delegatecall/readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/23_Delegatecall/readme.md b/23_Delegatecall/readme.md index f72361183..de60f2c40 100644 --- a/23_Delegatecall/readme.md +++ b/23_Delegatecall/readme.md @@ -83,7 +83,8 @@ contract C { ### 发起调用的合约B -首先,合约`B`必须和目标合约`C`的变量存储布局必须相同,两个变量,并且顺序为`num`和`sender` +首先,合约`B`必须和目标合约`C`的变量存储布局必须相同 —— 即存在两个 `public` 变量且变量类型顺序为 `uint256` 和 `address` +> **注意:** 变量名称可以不同 ```solidity contract B {