// SPDX-License-Identifier: MIT pragma solidity 0.8.17;
/// @title SmartHorrocrux /// @author https://twitter.com/AugustitoQ /// @notice Some security researchers have recently found an eighth Horrocrux, it seems that Voldemort has link to a smart contract, can you destroy it? /// @custom:url https://www.ctfprotocol.com/tracks/eko2022/smart-horrocrux contract SmartHorrocrux { bool private invincible; bytes32 private constant _spell = 0x45746865724b6164616272610000000000000000000000000000000000000000; // var only for test purposes bool public alive = true;
functiondeploy(address) externalpayableoverridereturns (address[] memory ret) { require(msg.value == 2, "Pay me 2 wei"); address _challenge = address(new SmartHorrocrux{value: 2}()); ret = new address[](1); ret[0] = _challenge; }
functionisComplete(address[] calldata _challenges) externalviewoverridereturns (bool) { // @dev to win this challenge you must detroy the contract address _contract = _challenges[0];
This is copyright.