pragma solidity ^0.8.19;

import "forge-std/Script.sol";

contract BaseDeploy is Script {
    function run() public {
        // Base data
        // PRIVATE_KEY=0 / empty silently falls back to .secret (0 is an invalid secp256k1 key).
        uint256 privateKey = vm.envOr("PRIVATE_KEY", uint256(0));
        if (privateKey == 0) {
            string memory seedPhrase = vm.readFile(".secret");
            privateKey = vm.deriveKey(seedPhrase, 0);
        }
        address sender = vm.addr(privateKey);
        console.log(sender);
    }
}
