Skip to content

Commit

Permalink
Merge pull request #10 from Confucian-e/main
Browse files Browse the repository at this point in the history
描述少了一个“不”字
  • Loading branch information
AmazingAng authored Sep 7, 2023
2 parents 0cdf54c + 9e4b725 commit 00a92a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 20_StaticcallOp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

`STATICCALL`指令会创建一个子环境来执行其他合约的部分代码,并返回数据。返回数据可以使用`RETURNDATASIZE``RETURNDATACOPY`获取。若执行成功,会将`1`压入堆栈;否则,则压入`0`。如果目标合约没有代码,仍将`1`压入堆栈(视为成功)。

`CALL`指令的不同,`STATICCALL`不能发送`ETH`也能改变合约的状态。它不允许子环境执行的代码中包含以下指令:
`CALL`指令的不同,`STATICCALL`不能发送`ETH`也不能改变合约的状态。它不允许子环境执行的代码中包含以下指令:

- `CREATE`, `CREATE2`, `SELFDESTRUCT`
- `LOG0` - `LOG4`
Expand Down

0 comments on commit 00a92a8

Please sign in to comment.