Explorar o código

Fix ERC1155 URI example (#2401)

Andrew B Coathup %!s(int64=4) %!d(string=hai) anos
pai
achega
5272799bdd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/modules/ROOT/pages/erc1155.adoc

+ 1 - 1
docs/modules/ROOT/pages/erc1155.adoc

@@ -45,7 +45,7 @@ contract GameItems is ERC1155 {
     uint256 public constant SWORD = 3;
     uint256 public constant SHIELD = 4;
 
-    constructor() public ERC1155("https://game.example/api/item/{1}.json") {
+    constructor() public ERC1155("https://game.example/api/item/{id}.json") {
         _mint(msg.sender, GOLD, 10**18, "");
         _mint(msg.sender, SILVER, 10**27, "");
         _mint(msg.sender, THORS_HAMMER, 1, "");