This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.8.0; | |
import "forge-std/Test.sol"; | |
import "forge-std/console2.sol"; | |
contract ContractA { | |
function destroy() public { | |
selfdestruct(payable(0)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
forge verify-contract --chain-id 1 --num-of-optimizations 200 --constructor-args $(cast abi-encode "constructor(address)" 0x) --compiler-version v0.8.16 <the_contract_address> src/MyToken.sol:MyToken <your_etherscan_api_key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: LGPL-3.0-only | |
pragma solidity >=0.7.0 <0.9.0; | |
interface IOwnable { | |
function transferOwnership(address) external; | |
} | |
contract Deployer { | |
event ContractCreation(address newContract); |