# Deploy ERC1155 Contract

### Before you begin

Before you begin, make sure to do the following:

* [**InfraEVM Parachain**](https://docs.infrablockchain.net/infrablockchain-docs/infrablockchain/service-chains/infra-evm-parachain)
* [**Moving Assets with EVM**](https://docs.infrablockchain.net/infrablockchain-docs/infrablockchain/tutorials/service-chains/infra-evm-parachain/deposit-and-withdraw-token)

### Deploying an ERC1155 Token Contract Using Remix

1. Go to [Remix](https://remix.ethereum.org).

   ![erc-1155remix-main](https://3394686052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FcHUSDzEQOuSRhER7FQ%2Fuploads%2Fgit-blob-e29c88ce06728e8681175a5848a54275f5304043%2Ferc1155-remix-main.png?alt=media)
2. Create a workspace. Choose the ERC1155 token contract template.

   ![erc1155-create-workspace](https://3394686052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FcHUSDzEQOuSRhER7FQ%2Fuploads%2Fgit-blob-bb843027547692ecb77576cc9f04614aa4cbe46c%2Ferc1155-create-workspace.png?alt=media) ![erc1155-choose-template](https://3394686052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FcHUSDzEQOuSRhER7FQ%2Fuploads%2Fgit-blob-d224e8495d45047e62315756f7d086408caabe26%2Ferc1155-choose-template.png?alt=media)
3. Verify the created workspace.

   ![erc1155-check-code](https://3394686052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FcHUSDzEQOuSRhER7FQ%2Fuploads%2Fgit-blob-2088ee162d6568c3fdda23ecca019ddd22159392%2Ferc1155-check-code.png?alt=media)
4. Compile the generated code.

   ![erc1155-compile-code](https://3394686052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FcHUSDzEQOuSRhER7FQ%2Fuploads%2Fgit-blob-a8d00750f67734e92000e70de65038488f204b03%2Ferc1155-compile-code.png?alt=media)
5. Choose the network for deployment as `Injected Provider - MetaMask` and connect MetaMask to Remix.

   ![erc1155-inject-provider](https://3394686052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FcHUSDzEQOuSRhER7FQ%2Fuploads%2Fgit-blob-84c43dcf487839380c7eaab328df8b8563bcfa7a%2Ferc1155-inject-provider.png?alt=media)
6. Before deploying, set variable values like the owner and deploy the contract.

   ![erc1155-deploy](https://3394686052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FcHUSDzEQOuSRhER7FQ%2Fuploads%2Fgit-blob-c26b7bcfb393336f493d7b0e242c43db7c984e3b%2Ferc1155-deploy.png?alt=media)
7. If a confirmation window appears in MetaMask, double-check and proceed with contract deployment.

   ![erc1155-deploy-check](https://3394686052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FcHUSDzEQOuSRhER7FQ%2Fuploads%2Fgit-blob-227d6bea70ee4fa7c35fb4033d3dba53967d7312%2Ferc1155-deploy-check.png?alt=media)
