Skip to content

Commit 6e6dec4

Browse files
authored
Merge pull request #769 from MarioJames/docs/delegateCall
doc: 调整 DelegateCall 课程中代理合约相关描述
2 parents 88eb379 + 32767a1 commit 6e6dec4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

23_Delegatecall/readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ contract C {
8383

8484
### 发起调用的合约B
8585

86-
首先,合约`B`必须和目标合约`C`的变量存储布局必须相同,两个变量,并且顺序为`num``sender`
86+
首先,合约`B`必须和目标合约`C`的变量存储布局必须相同 —— 即存在两个 `public` 变量且变量类型顺序为 `uint256``address`
87+
> **注意:** 变量名称可以不同
8788
8889
```solidity
8990
contract B {

0 commit comments

Comments
 (0)