Create and deploy CCIP NFT Contracts

We will now create and deploy our CCIP Contracts.


We are going to start this workshop on Remix

REMIX IDE

In Remix, switch to the DEPLOY & RUN TRANSACTIONS view. You will be very familiar with this by now!


Make sure you are on the fifth icon on the lefthand side of remix

  • it should be titled DEPLOY & RUN TRANSACTIONS

Make sure you have selected “Injected provider - Metamask” and that the network is (11155111) which is Ethereum Sepolia. If not make sure to switch your network in your Metamask extension.

Example showing Connection to Injected Provider - Metamask & Connection to the Sepolia Network

CrossChainPriceNFT.sol

In the Remix File Explorer, create a new file. Name it CrossChainPriceNFT.sol.

I am providing the code for you here, there were some slight changes in this block of code from the source code used during the Recorded Workshop. Polygon's Mumbai Testnet was deprecated so I took the liberty of updating this code to exclude all references to Mumbai and instead replaced it with parameters that point towards Base Sepolia test network


We will now deploy the code. Switch to Remix's DEPLOY & RUN TRANSACTIONS tab, select the CrossChainPriceNFT file and click the Deploy button.

Example of DEPLOY & RUN TRANSACTIONS TAB with CrossChainPriceNFT.sol Selected
Confirm the Transaction

We will now check this collection on Opensea.

Testnet Opensea

Copy your CrossChainPriceNFT contract address.

Example of copying the CrossChainPriceNFT address

Use this link testnet.opensea.io to navigate the testnet version of Opensea. In the search bar you will search your CrossChainPriceNFT.sol address that you just deployed.

  • Save this link to your collection so you can check on the status of your NFT's

What your collection should look like

Last updated