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

selfdestruct does not seem to work #3864

Closed
1 of 2 tasks
simontianx opened this issue Dec 10, 2022 · 1 comment
Closed
1 of 2 tasks

selfdestruct does not seem to work #3864

simontianx opened this issue Dec 10, 2022 · 1 comment
Labels
T-bug Type: bug

Comments

@simontianx
Copy link

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (b28119b 2022-11-23T03:06:50.152811Z)

What command(s) is the bug in?

selfdestruct

Operating System

Windows

Describe the bug

The detailed discussions can be found in this thread. Running the same code with selfdestruct in remix and foundry presents different behaviors. In Foundry, selfdestruct seems to do nothing about destructing the contract but only forwarding funds to a designated wallet address. Please take a look into this.

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

No branches or pull requests

2 participants