Skip to content

Commit

Permalink
docs(*): update the default World address 🏎 (#2612)
Browse files Browse the repository at this point in the history
  • Loading branch information
qbzzt authored Apr 4, 2024
1 parent e857692 commit 91b0655
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/pages/world/modules/keyswithvalue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { KeysWithValueModule } from "@latticexyz/world-modules/src/modules/keysw
contract DeployKeyWithValueModule is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
address worldAddress = 0x4F4DDaFBc93Cf8d11a253f21dDbcF836139efdeC;
address worldAddress = 0xC14fBdb7808D9e2a37c1a45b635C8C3fF64a1cc1;
vm.startBroadcast(deployerPrivateKey);
IWorld world = IWorld(worldAddress);
Expand Down Expand Up @@ -108,7 +108,7 @@ import { EncodedLengths, EncodedLengthsLib } from "@latticexyz/store/src/Encoded
contract UseKeysWithValues is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
address worldAddress = 0x4F4DDaFBc93Cf8d11a253f21dDbcF836139efdeC;
address worldAddress = 0xC14fBdb7808D9e2a37c1a45b635C8C3fF64a1cc1;
uint createdAt = block.timestamp;
uint completedAt = 0;
Expand Down Expand Up @@ -142,7 +142,7 @@ contract UseKeysWithValues is Script {
<summary>Explanation</summary>

```solidity
import { Tasks, TasksTableId } from "../src/codegen/index.sol";
import { Tasks } from "../src/codegen/index.sol";
```

It is easiest to use `getKeysWithValue` when you have the definition of the source table.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/world/namespaces-access-control.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ import { Counter } from "../src/codegen/index.sol";
contract Permissions is Script {
function run() external {
address worldAddress = 0x4F4DDaFBc93Cf8d11a253f21dDbcF836139efdeC;
address worldAddress = 0xC14fBdb7808D9e2a37c1a45b635C8C3fF64a1cc1;
// Load the private key from the `PRIVATE_KEY` environment variable (in .env)
uint256 namespaceOwnerPrivateKey = vm.envUint("PRIVATE_KEY");
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/world/tables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import { Counter } from "../src/codegen/index.sol";
contract ReadCounter is Script {
function run() external {
address worldAddress = 0x4F4DDaFBc93Cf8d11a253f21dDbcF836139efdeC;
address worldAddress = 0xC14fBdb7808D9e2a37c1a45b635C8C3fF64a1cc1;
StoreSwitch.setStoreAddress(worldAddress);
console.log("Counter value:", Counter.get());
}
Expand All @@ -71,7 +71,7 @@ import { Counter } from "../src/codegen/index.sol";
It is easiest if we import the definitions of the table that were generated using [`mud tablegen`](./cli/tablegen).

```solidity
address worldAddress = 0x4F4DDaFBc93Cf8d11a253f21dDbcF836139efdeC;
address worldAddress = 0xC14fBdb7808D9e2a37c1a45b635C8C3fF64a1cc1;
StoreSwitch.setStoreAddress(worldAddress);
```

Expand Down Expand Up @@ -106,7 +106,7 @@ import { Counter } from "../src/codegen/index.sol";
contract ResetCounter is Script {
function run() external {
// Specify a store so that you can use tables directly
address worldAddress = 0x4F4DDaFBc93Cf8d11a253f21dDbcF836139efdeC;
address worldAddress = 0xC14fBdb7808D9e2a37c1a45b635C8C3fF64a1cc1;
StoreSwitch.setStoreAddress(worldAddress);
// Load the private key from the `PRIVATE_KEY` environment variable (in .env)
Expand Down

0 comments on commit 91b0655

Please sign in to comment.