How to Hack Smart Contracts: Self Destruct and Solidityby@kamilpolak
41,069 reads

How to Hack Smart Contracts: Self Destruct and Solidity

tldt arrow
EN
Read on Terminal Reader
Read this story w/o Javascript

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

I am a huge enthusiast of cryptocurrency and blockchain technology.


Receive Stories from @kamilpolak

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!