How to Solve the Ethernaut Game's Level 5: Tokenby@kamilpolak
3,322 reads

How to Solve the Ethernaut Game's Level 5: Token

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

Too Long; Didn't Read

In challenge 5 you are given 20 tokens to start with and you will beat the level if you somehow manage to get your hands on any additional tokens. To win this challenge we need to trigger an overflow or underflow. The overflow is a situation when an integer (signed integer) reaches its byte size. The next element added will return the first variable element. If you subtract 1 from a variable that is 0, it will change the value to 255. There are two options to use Openppelin to use all the mathematical operators.

Coin Mentioned

Mention Thumbnail
featured image - How to Solve the Ethernaut Game's Level 5: Token
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!