Setup EVM ERC1155 Contract
Last updated
Was this helpful?
Last updated
Was this helpful?
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:
Super Cool NFT Bridge
COOL
0x5bCc21acdF2f15A13721E8eB93F72Ac8B85Cb76B
Click Confirm
From here we can see that a contract was created, let's go there and save the contract's address.
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.
In the console you should see the creation and if you click on the transaction you can copy and paste it into
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 .