Blockchain

DescriptionThe goal of this level is for you to claim ownership of the instance you are given.Things that might helpLook into Solidity's documentation on the delegatecall low level function, how it works, how it can be used to delegate operations to on-chain libraries, and what implications it has on execution scope.Fallback methodsMethod idsCode// SPDX-License-Identifier: MITpragma solidity ^0...
DescriptionThe goal of this level is for you to hack the basic token contract below.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. Preferably a very large amount of tokens.Things that might help:What is an odometer?Code// SPDX-License-Identifier: MITpragma solidity ^0.6.0;contract Token { mapping(address => u..
DescriptionClaim ownership of the contract below to complete this level.Things that might helpSee the "?" page above, section "Beyond the console"Code// SPDX-License-Identifier: MITpragma solidity ^0.8.0;contract Telephone { address public owner; constructor() { owner = msg.sender; } function changeOwner(address _owner) public { if (tx.origin != msg.sender) { ..
Code// SPDX-License-Identifier: MITpragma solidity ^0.8.0;contract CoinFlip { uint256 public consecutiveWins; uint256 lastHash; uint256 FACTOR = 57896044618658097711785492504343953926634992332820282019728792003956564819968; constructor() { consecutiveWins = 0; } function flip(bool _guess) public returns (bool) { uint256 blockValue = uint256(blockhash(block.number ..
DescriptionClaim ownership of the contract below to complete this level.Things that might helpSolidity Remix IDECode// SPDX-License-Identifier: MITpragma solidity ^0.6.0;import "openzeppelin-contracts-06/math/SafeMath.sol";contract Fallout { using SafeMath for uint256; mapping(address => uint256) allocations; address payable public owner; /* constructor */ function Fal1out() publi..
DescriptionLook carefully at the contract's code below.You will beat this level ifyou claim ownership of the contractyou reduce its balance to 0Things that might helpHow to send ether when interacting with an ABIHow to send ether outside of the ABIConverting to and from wei/ether units (see help() command)Fallback methodsCode// SPDX-License-Identifier: MITpragma solidity ^0.8.0;contract Fallback..
DescriptionThis level walks you through the very basics of how to play the game.1. Set up MetaMaskIf you don't have it already, install the MetaMask browser extension (in Chrome, Firefox, Brave or Opera on your desktop machine). Set up the extension's wallet and use the network selector to point to the preferred network in the top left of the extension's interface. Alternatively you can use the ..
je1att0
'Blockchain' 카테고리의 글 목록 (2 Page)