Setup EVM ERC1155 Contract

We're going to setup our ERC1155 first, then we'll deploy the atomictokenpeg1155 contract.

Click ERC11555Tradeable.sol then move to the deployment & run transactions tab.

Now to use metamask we'll change the ENVIRONMENT dropdown to Injected Web3

Make sure in metamask you have your token account selected and that it is connected, take note of the last 4 digits of your address and ensure under the ACCOUNT tab the same account is selected.

Specify a name, symbol, default token URI, and the proxy address and click Transact. The default URI will be used if not URI is specified in the creation of an NFT.

Example used:

despite the quotes seen below for the URI, the quotes are not needed

Click Confirm

In the console you should see the creation and if you click on the transaction you can copy and paste it into https://rinkeby.etherscan.io/

From here we can see that a contract was created, let's go there and save the contract's address.

If you click the Contract tab, you should not need to verify the source code. If it's not verified, you can check the /contracts/eth/flat folder for a flattened version of the contract. Can also use this site to submit the ABI-encoded constructor arguments https://abi.hashex.org/.

If you use the ABI hashex, do not add any quotes "" around the strings, if you do you'll get an error when trying to verify.

If you're here it means you have the green check, congrats!!

Now we'll transfer ownership of the NFT contract to the bridge contract.

Last updated