Skip to content

Commit

Permalink
testnet: helper updates and deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed Nov 24, 2023
1 parent 9b5dd45 commit f0258b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion script/Tenderize_Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract Tenderize_Deploy is Script {
// Contracts are deployed deterministically.
// e.g. `foo = new Foo{salt: salt}(constructorArgs)`
// The presence of the salt argument tells forge to use https://github.com/Arachnid/deterministic-deployment-proxy
bytes32 private constant salt = 0x0;
bytes32 private constant salt = bytes32(uint256(1));

function run() public {
string memory json_output;
Expand Down
2 changes: 1 addition & 1 deletion script/XYZ_Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Registry } from "core/registry/Registry.sol";
import { Factory } from "core/factory/Factory.sol";

contract XYZ_Deploy is Script {
bytes32 private constant salt = 0x0;
bytes32 private constant salt = bytes32(uint256(1));

function run() public {
address registry = vm.envAddress("REGISTRY");
Expand Down
2 changes: 1 addition & 1 deletion script/XYZ_Faucet.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { TokenFaucet } from "../test/helpers/Faucet.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";

contract XYZ_Faucet is Script {
bytes32 private constant salt = 0x0;
bytes32 private constant salt = bytes32(uint256(1));

function run() public {
uint256 privKey = vm.envUint("PRIVATE_KEY");
Expand Down
4 changes: 2 additions & 2 deletions script/arbgoerli_testnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","id":6
source .env

# Deterministic
export REGISTRY=0x8A89ee359EF0C92e3A8c3af11d1D675d3DF16B2f
export FACTORY=0x3cB1E8d050E126bBE05782c7206Cf53856FDaA77
export REGISTRY=0x6232894e592F104FB561c1Fb59a52ea01ee7D867
export FACTORY=0x62536191D4EB10D4CA5909D60232593A1b40BE10

# forge script script/Tenderize_Deploy.s.sol:Tenderize_Deploy --rpc-url ${ARBITRUM_GOERLI_RPC} --broadcast --private-key $PRIVATE_KEY -vvvv

Expand Down

0 comments on commit f0258b5

Please sign in to comment.