Created
June 9, 2023 16:52
-
-
Save lucasfernandes/2caa426036c57c78d1f8b44383a036a6 to your computer and use it in GitHub Desktop.
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: UNLICENSED | |
pragma solidity ^0.8.20; | |
import "forge-std/Script.sol"; | |
import "../src/Sam.sol"; | |
contract SamScript is Script { | |
function run() public { | |
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); | |
uint256 maxSupply = 5_000; | |
uint256 maxSupplyWhitelist = 2_000; | |
uint256 unitPrice = 0.01 ether; | |
string memory uri = vm.envString("IPFS_URI"); | |
vm.startBroadcast(deployerPrivateKey); | |
new Sam(maxSupply, maxSupplyWhitelist, unitPrice, uri); | |
vm.stopBroadcast(); | |
} | |
// test mock | |
function test_mock() public {} | |
} | |
foundry.toml | |
[rpc_endpoints] | |
goerli = "${GOERLI_RPC_URL}" | |
[etherscan] | |
goerli = { key = "${ETHERSCAN_API_KEY}" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment