Skip to content

Commit

Permalink
Merge pull request #769 from MarioJames/docs/delegateCall
Browse files Browse the repository at this point in the history
doc: 调整 DelegateCall 课程中代理合约相关描述
  • Loading branch information
AmazingAng authored Oct 19, 2024
2 parents 88eb379 + 32767a1 commit 6e6dec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 23_Delegatecall/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ contract C {

### 发起调用的合约B

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

0 comments on commit 6e6dec4

Please sign in to comment.