Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: yul selfdestruct #97

Open
wants to merge 2 commits into
base: brock/no_recurse
Choose a base branch
from
Open

Conversation

brockelmore
Copy link
Contributor

No description provided.

@plotchy
Copy link
Collaborator

plotchy commented Aug 13, 2024

works as i would expect with both forks 👍

the messaging of killed: Some((File(0, 282, 315), Ended)) is a little unclear on its own, but seeing the ariadne clears it up

pragma solidity ^0.8.19;

contract A {
    uint a;

    function foo() public returns (uint) {
        if (a == 1) {
            uint x = f();
            a = 2;
        } else {
            a = 3;
        }
        return a;
    }

    function f() public returns (uint) {
        selfdestruct(payable(msg.sender));
        return 1;
    }
}
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants