Skip to content

Commit

Permalink
Renamed sefdestruct to selfDestructSample function in Sample contract
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Nikolov <[email protected]>
  • Loading branch information
nickeynikolovv committed Mar 26, 2024
1 parent 1cde0ca commit 7c49202
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"inputs": [],
"name": "selfdestruct",
"name": "selfDestructSample",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down
5 changes: 3 additions & 2 deletions contracts/discrepancies/nonce/InternalCallee.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
pragma solidity ^0.8.0;

contract Sample {
function selfdestruct() external {

function selfDestructSample() external {
selfdestruct(payable(msg.sender));
}
}
Expand Down Expand Up @@ -34,7 +35,7 @@ contract InternalCallee {
}

function selfdestructSample(address payable sampleAddress) external {
Sample(sampleAddress).selfdestruct();
Sample(sampleAddress).selfDestructSample();
}

function internalTransfer(address payable _contract, address payable _receiver) payable external {
Expand Down

0 comments on commit 7c49202

Please sign in to comment.