@latticexyz/cli 2.2.24-dc349e170742ab243c779d9a73a6bfbcc394b707 → 2.2.24-feeadcd5131f2e3452a108d3838dcd42c39c05e8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1528,7 +1528,7 @@ async function deploy({
1528
1528
  throw new Error(`Unsupported World version: ${worldDeploy.worldVersion}`);
1529
1529
  }
1530
1530
  const libraryMap = getLibraryMap(libraries);
1531
- const deployedContracts = await ensureContractsDeployed5({
1531
+ await ensureContractsDeployed5({
1532
1532
  ...commonDeployOptions,
1533
1533
  deployerAddress,
1534
1534
  contracts: [
@@ -1607,13 +1607,7 @@ async function deploy({
1607
1607
  debugLabel: "remaining transactions"
1608
1608
  });
1609
1609
  debug2("deploy complete");
1610
- return {
1611
- ...worldDeploy,
1612
- contracts: deployedContracts.map(({ contract, deployedAddress }) => ({
1613
- label: contract.debugLabel ?? "unknown",
1614
- address: deployedAddress
1615
- }))
1616
- };
1610
+ return worldDeploy;
1617
1611
  }
1618
1612
 
1619
1613
  // src/runDeploy.ts
@@ -2101,7 +2095,7 @@ Using ${package_default.name}@${package_default.version}`));
2101
2095
  console.log("Deploying from", client.account.address);
2102
2096
  const automine = await enableAutomine(client);
2103
2097
  const startTime = Date.now();
2104
- const deployResult = await deploy({
2098
+ const worldDeploy = await deploy({
2105
2099
  config,
2106
2100
  deployerAddress: opts.deployerAddress,
2107
2101
  salt,
@@ -2119,7 +2113,7 @@ Using ${package_default.name}@${package_default.version}`));
2119
2113
  if (opts.worldAddress == null || opts.alwaysRunPostDeploy) {
2120
2114
  await postDeploy(
2121
2115
  config.deploy.postDeployScript,
2122
- deployResult.address,
2116
+ worldDeploy.address,
2123
2117
  rpc,
2124
2118
  profile,
2125
2119
  opts.forgeScriptOptions,
@@ -2129,9 +2123,8 @@ Using ${package_default.name}@${package_default.version}`));
2129
2123
  await automine?.reset();
2130
2124
  console.log(chalk2.green("Deployment completed in", (Date.now() - startTime) / 1e3, "seconds"));
2131
2125
  const deploymentInfo = {
2132
- worldAddress: deployResult.address,
2133
- blockNumber: Number(deployResult.deployBlock),
2134
- contracts: deployResult.contracts
2126
+ worldAddress: worldDeploy.address,
2127
+ blockNumber: Number(worldDeploy.deployBlock)
2135
2128
  };
2136
2129
  if (opts.saveDeployment) {
2137
2130
  const deploysDir = path9.join(config.deploy.deploysDirectory, chainId.toString());
@@ -2155,8 +2148,8 @@ Using ${package_default.name}@${package_default.version}`));
2155
2148
  )
2156
2149
  );
2157
2150
  }
2158
- console.log({ worldAddress: deploymentInfo.worldAddress, blockNumber: deploymentInfo.blockNumber });
2159
- return deployResult;
2151
+ console.log(deploymentInfo);
2152
+ return worldDeploy;
2160
2153
  }
2161
2154
  function getWorldDeployBlock({
2162
2155
  chainId,
@@ -2487,8 +2480,7 @@ var testOptions = {
2487
2480
  type: "string",
2488
2481
  description: "Address of an existing world contract. If provided, deployment is skipped and the RPC provided in the foundry.toml is used for fork testing."
2489
2482
  },
2490
- forgeOptions: { type: "string", description: "Options to pass to forge test" },
2491
- saveDeployment: { type: "boolean", desc: "Save the deployment info to a file", default: false }
2483
+ forgeOptions: { type: "string", description: "Options to pass to forge test" }
2492
2484
  };
2493
2485
  var commandModule8 = {
2494
2486
  command: "test",
@@ -2508,6 +2500,7 @@ var commandModule8 = {
2508
2500
  const forkRpc = opts.worldAddress ? await getRpcUrl2(opts.profile) : `http://127.0.0.1:${opts.port}`;
2509
2501
  const worldAddress = opts.worldAddress ?? (await runDeploy({
2510
2502
  ...opts,
2503
+ saveDeployment: false,
2511
2504
  rpc: forkRpc
2512
2505
  })).address;
2513
2506
  console.log(chalk4.blue("World address", worldAddress));
@@ -3256,4 +3249,4 @@ var commands = [
3256
3249
  export {
3257
3250
  commands
3258
3251
  };
3259
- //# sourceMappingURL=commands-45I2XHUC.js.map
3252
+ //# sourceMappingURL=commands-IDBOJLTZ.js.map