Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Nov 1, 2023
1 parent d963bb4 commit 65a8802
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .changeset/gorgeous-swans-hide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"@latticexyz/world-modules": minor
---

Added the `ERC721Module` to `@latticexyz/world-modules`.
Added the `ERC721Module` to `@latticexyz/world-modules`.
This module allows the registration of `ERC721` tokens in an existing World.

Important note: this module has not been audited yet, so any production use is discouraged for now.

```solidity
````solidity
import { PuppetModule } from "@latticexyz/world-modules/src/modules/puppet/PuppetModule.sol";
import { ERC721MetadataData } from "@latticexyz/world-modules/src/modules/erc721-puppet/tables/ERC721Metadata.sol";
import { IERC721Mintable } from "@latticexyz/world-modules/src/modules/erc721-puppet/IERC721Mintable.sol";
Expand All @@ -18,3 +18,4 @@ world.installModule(new PuppetModule(), new bytes(0));
// After the Puppet module is installed, new ERC721 tokens can be registered
IERC721Mintable token = registerERC721(world, "myERC721", ERC721MetadataData({ name: "Token", symbol: "TKN", baseURI: "" }));```
````

0 comments on commit 65a8802

Please sign in to comment.