Skip to content

Commit

Permalink
Fixing comments
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Stefanov <[email protected]>
  • Loading branch information
stefan-stefanooov committed Oct 18, 2023
1 parent dbf2a30 commit c981c01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/solidity/account/NonExisting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ pragma solidity ^0.8.20;

contract NonExisting {
function callOnNonExistingAccount(address nonExistingAddr) external {
nonExistingAddr.call{value: 0}(
nonExistingAddr.call(
abi.encodeWithSignature("doesNotExist()")
);
}

function delegatecallOnNoneExistingAccount(address nonExistingAddr) external {
(bool success, bytes memory data) = nonExistingAddr.delegatecall(
nonExistingAddr.delegatecall(
abi.encodeWithSignature("doesNotExist()")
);
}

function staticcallOnNoneExistingAccount(address nonExistingAddr) external {
(bool success, bytes memory data) = nonExistingAddr.staticcall(
nonExistingAddr.staticcall(
abi.encodeWithSignature("doesNotExist()")
);
}
Expand Down

0 comments on commit c981c01

Please sign in to comment.