Created
November 23, 2021 00:04
-
-
Save ASoldo/c59bedfa769dcefffd96d674a11d5495 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.10+commit.fc410830.js&optimize=true&runs=200&gist=
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.8.0 <0.9.0; | |
//SPDX-License-Identifier: MIT | |
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; | |
import "@openzeppelin/contracts/utils/Strings.sol"; | |
contract Soldables is ERC1155{ | |
//0x0bb089104b4e5dedfc16f743cf8bf513df759b54 | |
//0x0bB089104B4e5dEDFc16f743cF8bF513dF759B54 | |
uint256 public constant Charmander = 0; | |
constructor() ERC1155("https://soldo.com/{i}.json"){ | |
_mint(msg.sender, Charmander, 100, ""); | |
} | |
function uri(uint256 _tokenId) override public pure returns(string memory){ | |
return string( | |
abi.encodePacked("https://soldo.com/", Strings.toString(_tokenId), ".json") | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment