Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasfernandes/2caa426036c57c78d1f8b44383a036a6 to your computer and use it in GitHub Desktop.
Save lucasfernandes/2caa426036c57c78d1f8b44383a036a6 to your computer and use it in GitHub Desktop.
// 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