This commit is contained in:
tim
2025-09-15 15:15:12 -04:00
parent b53fc444cb
commit f7e40eee06
2 changed files with 7 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
#!/bin/bash
CODE_SIZE_LIMIT=65000
PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
# Function to cleanup processes
cleanup() {
@@ -12,7 +14,7 @@ trap cleanup EXIT
mkdir -p log
# Run anvil in background and redirect output to log file
anvil | tee log/anvil.txt &
anvil --code-size-limit ${CODE_SIZE_LIMIT} | tee log/anvil.txt &
ANVIL_PID=$!
# Function to check if string exists in file
@@ -33,7 +35,7 @@ while ! check_string "Listening on" "log/anvil.txt"; do
fi
done
forge script DeployMock --broadcast "$@"
forge script --code-size-limit ${CODE_SIZE_LIMIT} --private-key ${PRIVATE_KEY} DeployMock --fork-url http://localhost:8545 --broadcast "$@"
echo "Press Ctrl+C to exit..."
while true; do

View File

@@ -10,11 +10,13 @@ import "../src/PartyPool.sol";
contract DeployMock is Script {
address constant devAccount0 = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266;
// private key 0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356
address constant devAccount7 = 0x14dC79964da2C08b23698B3D3cc7Ca32193d9955;
address constant deployer = devAccount0;
function run() public {
vm.startBroadcast(deployer);
vm.startBroadcast();
// create mock tokens
usxd = new MockERC20('Joke Currency', 'USXD', 6);
@@ -52,8 +54,6 @@ contract DeployMock is Script {
console2.log(' DIVE', address(dive));
}
address constant deployer = address(0x472358699872673459876); // anything
MockERC20 private usxd;
MockERC20 private fusd;
MockERC20 private dive;