How to Hack Smart Contracts: Self Destruct and Solidityby@kamilpolak
31,454 reads🖨️

How to Hack Smart Contracts: Self Destruct and Solidity

January 20th 2022
by @kamilpolak 31,454 reads🖨️
tldt arrow
EN
Read on Terminal Reader

Too Long; Didn't Read

The 'selfdestruct(address)` function removes all bytecode from the contract and sends all ether stored to the specified address and sends ether. If this specified address is also a contract, no functions (including the fallback) get called. This vulnerability arises from the misuse of `this.balance` function.

Company Mentioned

Mention Thumbnail
featured image - How to Hack Smart Contracts: Self Destruct and Solidity
Kamil Polak HackerNoon profile picture

@kamilpolak

Kamil Polak

About @kamilpolak
LEARN MORE ABOUT @KAMILPOLAK'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa