Hhexbyteinblog.hexbyte.in·Oct 13, 2024 · 2 min readEthernaut Series - 05 (Token)Concept The emphasis of this level is on the concept of overflow and underflow which is a concern for contracts written in solidity version <0.8. Basically, there are different types of integer data type. For example, uint256, int256, uint8, int8. Ea...00
Hhexbyteinblog.hexbyte.in·Oct 13, 2024 · 2 min readEthernaut Series - 04 (Telephone)Concept The main concept being taught in this level is the difference between the use of tx.origin and msg.sender. Let’s try and understand this using the following image: Observations: If Bob calls contract A, the contract will see the value of tx...00
Hhexbyteinblog.hexbyte.in·Oct 7, 2024 · 3 min readEthernaut Series - 03 (Coin Flip)Overview This level presents us with a coin flipping game. We need to maintain a winning streak of 10 by guessing the outcome of a coin flip. The concept being taught here is the one about randomness. There is no inherit source of randomness in Ether...00
Hhexbyteinblog.hexbyte.in·Oct 5, 2024 · 4 min readEthernaut Series - 02 (Fal1out)We are asked to claim ownership of a contract whose code is provided as such: // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "openzeppelin-contracts-06/math/SafeMath.sol"; contract Fallout { using SafeMath for uint256; mapp...00
Hhexbyteinblog.hexbyte.in·Oct 5, 2024 · 3 min readEthernaut Series - 01The challenge asks us to claim the ownership of the contract and reduce its balance to 0. In this case, we have been provided with the contract itself. // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Fallback { mapping(address =...00