Skip to content

Commit

Permalink
deploy new conrtact
Browse files Browse the repository at this point in the history
  • Loading branch information
LidamaoHub committed Dec 26, 2023
1 parent ecaecae commit c0f07f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,5 @@ optimizer_runs = 3000
eth_rpc_url = "https://linea-goerli.infura.io/v3/8a5edc3264dd435391dad31e754031d6"
optimizer = true
optimizer_runs = 3000


5 changes: 3 additions & 2 deletions packages/contracts/script/PostDeploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ contract PostDeploy is Script {
function run(address worldAddress) external {
// Load the private key from the `PRIVATE_KEY` environment variable (in .env)
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");


// Start broadcasting transactions from the deployer account
vm.startBroadcast(deployerPrivateKey);

console.log(" ========== PostDeploy ========== ");

address muser = 0x2428109A9e775E4406fe079132F216dc77117333;
address mloot = 0x4A16f2658De79278Bce592258e7e38aB4c222787;
address mplugin = 0xcE34c3d4373A094d6e22ab15f0b0C36c771663cb;

bytes32 merkleRoot = 0x5df91eca63323dbb115087ef262075c5bcea99b8eaf95f520efb8d48ff447499;

IWorld(worldAddress).Init(muser, mloot, mplugin,merkleRoot);
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/worlds.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"33784": {
"address": "0x6e9474e9c83676b9a71133ff96db43e7aa0a4342",
"blockNumber": 123
"blockNumber": 125
},
"421613": {
"address": "0x32c856656b2bcdf739aa486a417b46b3d19f54f9",
Expand Down

0 comments on commit c0f07f7

Please sign in to comment.