# Just want to make sure I'm not doing anything stupid with a simple contract

**URL:** <https://forum.openzeppelin.com/t/just-want-to-make-sure-im-not-doing-anything-stupid-with-a-simple-contract/26736>\
**Category:** Review Wanted\
**Tags:** erc721, erc1155\
**Created:** [March 25, 2022, 9:53am UTC](https://forum.openzeppelin.com/t/just-want-to-make-sure-im-not-doing-anything-stupid-with-a-simple-contract/26736 "2022-03-25T09:53:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Ash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/_ash/32/12159_2.png) [@\_Ash](https://forum.openzeppelin.com/u/_Ash)\
**Post date:** [March 25, 2022, 9:53am UTC](https://forum.openzeppelin.com/t/just-want-to-make-sure-im-not-doing-anything-stupid-with-a-simple-contract/26736/1 "2022-03-25T09:53:51Z")

</div>

Idea is to mint 12 sets of 39 tokens at launch.. Nothing else needs doing

Is it feasible that deployment gets cancelled because of gas costs?

Are there any more efficient ways of doing this?

Thanks!

```auto
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts@4.5.0/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts@4.5.0/access/Ownable.sol";

contract TheContract is ERC1155, Ownable {

    function contractURI() public pure returns (string memory) {
        return "ipfs://................................................";
    }

    uint[] public tokens = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38];
    uint[] public supplies = [12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12];
    uint public minted = 0;

    constructor() ERC1155("ipfs:/............................................................./{id}.json") {
        _mintBatch(msg.sender, tokens, supplies, "");
        minted = 12;
    }
}

```

---

<div class="post-metadata">

**Author:** ![maxareo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/maxareo/32/11606_2.png) [@maxareo](https://forum.openzeppelin.com/u/maxareo)\
**Post date:** [March 25, 2022, 10:54am UTC](https://forum.openzeppelin.com/t/just-want-to-make-sure-im-not-doing-anything-stupid-with-a-simple-contract/26736/2 "2022-03-25T10:54:00Z")

</div>

You can certainly get a sense by deploying this contract on a testnet like Rinkeby. I tried it and it worked.

---

<div class="post-metadata">

**Author:** ![\_Ash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/_ash/32/12159_2.png) [@\_Ash](https://forum.openzeppelin.com/u/_Ash)\
**Post date:** [March 25, 2022, 11:33am UTC](https://forum.openzeppelin.com/t/just-want-to-make-sure-im-not-doing-anything-stupid-with-a-simple-contract/26736/3 "2022-03-25T11:33:18Z")

</div>

Thanks, yeah I've ran it on testnets already... just wondering if there is anything that I might have missed

---

<div class="post-metadata">

**Author:** ![maxareo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/maxareo/32/11606_2.png) [@maxareo](https://forum.openzeppelin.com/u/maxareo)\
**Post date:** [March 25, 2022, 11:41am UTC](https://forum.openzeppelin.com/t/just-want-to-make-sure-im-not-doing-anything-stupid-with-a-simple-contract/26736/4 "2022-03-25T11:41:48Z")

</div>

The meaning of `minted` is not quite clear. What does it mean exactly?

---

<div class="post-metadata">

**Author:** ![\_Ash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/_ash/32/12159_2.png) [@\_Ash](https://forum.openzeppelin.com/u/_Ash)\
**Post date:** [March 25, 2022, 12:03pm UTC](https://forum.openzeppelin.com/t/just-want-to-make-sure-im-not-doing-anything-stupid-with-a-simple-contract/26736/5 "2022-03-25T12:03:36Z")

</div>

Should probably be 'SetsMinted'

---

<div class="post-metadata">

**Author:** ![YummyDao](https://avatars.discourse-cdn.com/v4/letter/y/4af34b/32.png) [@YummyDao](https://forum.openzeppelin.com/u/YummyDao)\
**Post date:** [March 25, 2022, 1:59pm UTC](https://forum.openzeppelin.com/t/just-want-to-make-sure-im-not-doing-anything-stupid-with-a-simple-contract/26736/6 "2022-03-25T13:59:19Z")

</div>

What's the use of the minted
