The Ethernaut CTF Solutions | 21 - Shop
Goals
The Contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface Buyer {
function price() external view returns (uint);
}
contract Shop {
uint public price = 100;
bool public isSold;
function buy() public {
...
blog.pedrojok.com3 min read