Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed Dec 8, 2023
1 parent 774ad6a commit 45bebe1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Run foundry node, deploy contracts (& generate contracts typescript output)
env:
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
run: yarn chain & yarn deploy-local
run: yarn chain & yarn deploy
id: build

- name: Run tests
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"account": "yarn workspace @se-2/foundry account",
"chain": "yarn workspace @se-2/foundry chain",
"compile": "yarn workspace @se-2/foundry compile",
"deploy-local": "yarn workspace @se-2/foundry deploy",
"deploy": "yarn workspace @se-2/foundry deploy",
"deploy:verify": "yarn workspace @se-2/foundry deploy:verify",
"fork": "yarn workspace @se-2/foundry fork",
Expand Down
1 change: 0 additions & 1 deletion packages/foundry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"account": "node script/ListAccount.js",
"chain": "anvil --config-out localhost.json",
"compile": "forge compile",
"deploy-local": "forge build --build-info --build-info-path out/build-info/ && forge script script/Deploy.s.sol --rpc-url ${1:-localhost} --broadcast --legacy && node script/generateTsAbis.js",
"deploy": "forge build --build-info --build-info-path out/build-info/ && forge script script/Deploy.s.sol --rpc-url ${1:-default_network} --broadcast --legacy && node script/generateTsAbis.js",
"deploy:verify": "forge build --build-info --build-info-path out/build-info/ && forge script script/Deploy.s.sol --rpc-url ${1:-default_network} --broadcast --legacy --verify ; node script/generateTsAbis.js",
"fork": "anvil --fork-url ${0:-mainnet} --chain-id 31337 --config-out localhost.json",
Expand Down
14 changes: 8 additions & 6 deletions packages/foundry/script/DeployRepTokensInstanceWithData.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ contract DeployRepTokensInstanceWithData is Script {
address[] memory admins = new address[](1);
admins[0] = deployer;

//uncomment when deploying to localhost
// vm.startBroadcast(
// 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
// );
uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY");
vm.startBroadcast(deployerPrivateKey);
if (block.chainId == 31337) {
vm.startBroadcast(
0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
);
} else {
uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY");
vm.startBroadcast(deployerPrivateKey);
}

RepTokensInstance instance = new RepTokensInstance(
deployer,
Expand Down

0 comments on commit 45bebe1

Please sign in to comment.