From 6b56926ed207116c8bc86d5e92e88bffc21c05df Mon Sep 17 00:00:00 2001 From: Vicente Dragicevic Date: Tue, 26 Nov 2024 14:39:24 -0300 Subject: [PATCH] Fix script example --- docs/pages/world/modules/erc20.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/pages/world/modules/erc20.mdx b/docs/pages/world/modules/erc20.mdx index 76f0f3acd9..78c6f7569e 100644 --- a/docs/pages/world/modules/erc20.mdx +++ b/docs/pages/world/modules/erc20.mdx @@ -58,14 +58,15 @@ For example, run this script. -```solidity filename="ManageERC20.s.sol" copy showLineNumbers {15,33-37,42,47-55} +```solidity filename="ManageERC20.s.sol" copy showLineNumbers {16,34-38,43,48-56} +import { Script } from "forge-std/Script.sol"; import { console } from "forge-std/console.sol"; import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol"; import { ResourceId } from "@latticexyz/store/src/ResourceId.sol"; import { RESOURCE_TABLE } from "@latticexyz/store/src/storeResourceTypes.sol"; import { WorldResourceIdLib } from "@latticexyz/world/src/WorldResourceId.sol"; import { ERC20Registry } from "@latticexyz/world-module-erc20/src/codegen/index.sol"; -import { ERC20WithWorld as ERC20 } from "@latticexyz/world-modules-erc20/src/examples/ERC20WithWorld.sol"; +import { ERC20WithWorld as ERC20 } from "@latticexyz/world-module-erc20/src/examples/ERC20WithWorld.sol"; import { IWorld } from "../src/codegen/world/IWorld.sol";