Skip to content

Commit

Permalink
fix: 22_Call typo
Browse files Browse the repository at this point in the history
  • Loading branch information
PinelliaC committed May 25, 2023
1 parent 2c20a61 commit d95833d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 22_Call/Call.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract Call{
}

function callNonExist(address _addr) external{
// call getX()
// call 不存在的函数
(bool success, bytes memory data) = _addr.call(
abi.encodeWithSignature("foo(uint256)")
);
Expand Down
2 changes: 1 addition & 1 deletion 22_Call/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function callGetX(address _addr) external returns(uint256){

```solidity
function callNonExist(address _addr) external{
// call getX()
// call 不存在的函数
(bool success, bytes memory data) = _addr.call(
abi.encodeWithSignature("foo(uint256)")
);
Expand Down

0 comments on commit d95833d

Please sign in to comment.