src/DemoBTCV2.sol12 lines · 312 bytes
| 1 | // SPDX-License-Identifier: MIT |
| 2 | pragma solidity 0.8.37; |
| 3 | |
| 4 | import {DemoBTC} from "./DemoBTC.sol"; |
| 5 | |
| 6 | /// @title DemoBTC v2 |
| 7 | /// @notice The legitimate upgrade: identical to v1 plus `version()`. |
| 8 | contract DemoBTCV2 is DemoBTC { |
| 9 | function version() external pure returns (string memory) { |
| 10 | return "2"; |
| 11 | } |
| 12 | } |