Skip to content

Commit

Permalink
revert system switch change
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Oct 31, 2023
1 parent 52bf5aa commit bd7094a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ contract ERC20Module is Module {
// Deploy and register the ERC20 puppet.
IBaseWorld world = IBaseWorld(_world());
ResourceId erc20SystemId = _erc20SystemId(namespace);
address puppet = createPuppet(erc20SystemId);
address puppet = createPuppet(world, erc20SystemId);

// Transfer ownership of the namespace to the caller
ResourceId namespaceId = WorldResourceIdLib.encodeNamespace(namespace);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { IBaseWorld } from "@latticexyz/world/src/codegen/interfaces/IBaseWorld.
import { NamespaceOwner } from "@latticexyz/world/src/codegen/tables/NamespaceOwner.sol";
import { WorldResourceIdLib } from "@latticexyz/world/src/WorldResourceId.sol";

import { SystemSwitch } from "../../utils/SystemSwitch.sol";

import { ERC20Module } from "./ERC20Module.sol";
import { MODULE_NAMESPACE_ID, ERC20_REGISTRY_TABLE_ID } from "./constants.sol";
import { IERC20Mintable } from "./IERC20Mintable.sol";
Expand Down

0 comments on commit bd7094a

Please sign in to comment.