Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3a7a418
fix: get started ready
nhussein11 Nov 4, 2025
edcd596
fix: remix deploy
nhussein11 Nov 4, 2025
e630bb9
Update troubleshooting guide for Remix IDE and comment out 'Verify a …
nhussein11 Nov 4, 2025
2fb6744
fix: images and names
nhussein11 Nov 4, 2025
076b62d
fix: remove verify contract file
nhussein11 Nov 4, 2025
8261fc1
fix: llms
nhussein11 Nov 4, 2025
54a8024
Apply suggestions from code review
dawnkelly09 Nov 5, 2025
dda65db
fix: prerequisite
nhussein11 Nov 6, 2025
a8b8e66
fix: llms
nhussein11 Nov 6, 2025
a05af65
Grammarly things and reformat to FAQ style dropdowns for troubleshoot…
dawnkelly09 Nov 11, 2025
802a536
applies review feedback
dawnkelly09 Nov 11, 2025
50c0a83
Merge branch 'staging/product-ia' into nhussein11/add-remix-ide
dawnkelly09 Nov 11, 2025
930414a
Clean up formatting of titles and bullets
dawnkelly09 Nov 13, 2025
7323fd7
fix: feedback
nhussein11 Nov 17, 2025
5fc63e2
fix: llms
nhussein11 Nov 17, 2025
be0d460
fix: gifs lists wording
nhussein11 Nov 17, 2025
4cb6e96
fix: llms
nhussein11 Nov 17, 2025
0820fd3
Merge branch 'staging/product-ia' into nhussein11/add-remix-ide
nhussein11 Nov 17, 2025
dcfbc85
Remove outdated troubleshooting and verification guides for Remix IDE…
nhussein11 Nov 17, 2025
63a543e
fix errant merge conflict syntax, description length
dawnkelly09 Nov 18, 2025
dff1c0b
applies review feedback
dawnkelly09 Nov 18, 2025
64e4383
grammarly pass
dawnkelly09 Nov 18, 2025
bb80152
minor fix and llms
eshaben Nov 18, 2025
f2bc2ca
Merge branch 'staging/product-ia' into nhussein11/add-remix-ide
eshaben Nov 18, 2025
29c3c6f
Merge branch 'staging/product-ia' into nhussein11/add-remix-ide
eshaben Nov 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
350 changes: 157 additions & 193 deletions .ai/categories/smart-contracts.md

Large diffs are not rendered by default.

947 changes: 236 additions & 711 deletions .ai/categories/tooling.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ url: https://docs.polkadot.com/smart-contracts/dev-environments/remix/deploy-a-c

## Overview

After compiling your smart contract in Remix IDE, the next step is to deploy it to the Polkadot Hub network. This guide will walk you through the deployment process using a wallet provider, and show you how to interact with your deployed contracts directly from the Remix interface.
After compiling your smart contract in Remix IDE, the next step is to deploy it to the Polkadot Hub network. This guide will walk you through the deployment process using a wallet provider and show you how to interact with your deployed contracts directly from the Remix interface.

## Prerequisites

Expand All @@ -24,7 +24,7 @@ Before deploying your contract, ensure you have:

1. To deploy your contract, you need to:

1. Navigate to the **Deploy & Run Transactions** tab (fourth icon in the left sidebar).
1. Navigate to the **Deploy & Run Transactions** tab.
2. Click the **Environment** dropdown.
3. Select **Browser Extension**.
4. Click on the **Injected Provider - MetaMask** option.
Expand Down Expand Up @@ -56,7 +56,7 @@ Once deployed, your contract appears in the **Deployed/Unpinned Contracts** sect

4. Click the **Increment** button to increment the count value.

5. Submit the transaction and click the **Confirm** button in the wallet popup.
5. Submit the transaction and click the **Confirm** button in the wallet pop-up.

6. Once the transaction is confirmed, you will see the updated count value in the Remix terminal.

Expand All @@ -70,12 +70,12 @@ You've successfully deployed and interacted with your smart contract on Polkadot



- <span class="badge guide">Guide</span> __Troubleshooting__
- <span class="badge guide">Guide</span> __Troubleshooting and FAQs__

---

Find solutions to common issues when working with Remix IDE.

[:octicons-arrow-right-24: Get Started](/smart-contracts/dev-environments/remix/troubleshooting)
[:octicons-arrow-right-24: Get Started](/smart-contracts/dev-environments/remix/troubleshooting-faq/)

</div>
59 changes: 43 additions & 16 deletions .ai/pages/smart-contracts-dev-environments-remix-get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,66 @@ url: https://docs.polkadot.com/smart-contracts/dev-environments/remix/get-starte

# Remix IDE

## Overview
## Introduction

<<<<<<< HEAD
Remix IDE is a robust browser-based development environment for smart contracts. This guide will walk you through the essentials of the [Remix IDE](https://remix.ethereum.org/){target=\_blank} to understand the processes of compiling, developing, and deploying smart contracts on Polkadot Hub.
=======
<div class="grid cards" markdown>
- :octicons-code-16:{ .lg .middle } __Deploy NFTs Using Remix IDE__

---

Mint your NFT on Polkadot's Asset Hub. Use PolkaVM and OpenZeppelin to bring your digital asset to life with Polkadot Remix IDE.

<br>
[:octicons-arrow-right-24: Get Started](/smart-contracts/cookbook/smart-contracts/deploy-nft/remix/){target=\_blank}

- :octicons-code-16:{ .lg .middle } __Deploy ERC20s Using Remix IDE__

---

Mint your custom ERC-20 token on Polkadot's Asset Hub. Leverage PolkaVM and Polkadot Remix IDE to bring your blockchain project to life.

<br>
[:octicons-arrow-right-24: Get Started](/smart-contracts/cookbook/smart-contracts/deploy-erc20/remix/){target=\_blank}
</div>

!!! warning
The Polkadot Remix IDE's contract compilation functionality is currently limited to Google Chrome. Alternative browsers are not recommended for this task.

## Overview

Remix IDE is a robust browser-based development environment for smart contracts. This guide will walk you through the essentials of the [Polkadot Remix IDE](https://remix.polkadot.io/){target=\_blank} to understand the processes of compiling, developing, and deploying smart contracts on Asset Hub.
>>>>>>> staging/product-ia

## Prerequisites

Before getting started, ensure you have:

- A web browser with [MetaMask](https://metamask.io/){target=\_blank} extension installed.
- A web browser with the [MetaMask](https://metamask.io/){target=\_blank} extension installed.
- Basic understanding of Solidity programming.
- Some DOT test tokens to cover transaction fees (easily obtainable from the [Polkadot faucet](/smart-contracts/faucet/){target=\_blank}).
- Some test tokens to cover transaction fees (easily obtainable from the [Polkadot faucet](/smart-contracts/faucet/){target=\_blank}).

## Accessing Remix IDE
## Access Remix IDE

Navigate to [https://remix.ethereum.org/](https://remix.ethereum.org/){target=\_blank}. The interface will load with a default workspace containing sample contracts.

![](/images/smart-contracts/dev-environments/remix/get-started/remix-1.webp)

In this interface, you can access a file explorer, edit your code, interact with various plugins for development, and use a terminal.
In this interface, you can access a file explorer, edit your code, interact with various development plugins, and use a terminal.

## Creating a New Contract
## Create a New Contract

To create a new contract using the Remix IDE, you can follow these steps:

1. Select the **Create a new file** button in the `contracts` folder.

2. Name your file with a `.sol` extension, in this case, `Counter.sol`.

3. Write your Solidity code in the editor.

You can use the following code as an example:
3. Write your Solidity code in the editor. You can use the following code as an example:

???- "Counter.sol"
??? code "Counter.sol"

```solidity
// SPDX-License-Identifier: MIT
Expand All @@ -65,25 +92,25 @@ To create a new contract using the Remix IDE, you can follow these steps:
![](/images/smart-contracts/dev-environments/remix/get-started/remix-2.gif)


## Compiling Your Contract
## Compile Your Contract

To compile your contract, you need to:

1. Navigate to the **Solidity Compiler** tab (third icon in the left sidebar).
1. Navigate to the **Solidity Compiler** tab.
2. Select **Compile** or use `Ctrl+S`.

!!! note
Compilation errors and warnings appear in the terminal panel at the bottom of the screen.

3. After compiling your contract, you can navigate to the **File Explorer** tab (first icon in the left sidebar) and check that:
1. The `artifacts` folder is present.
3. After compiling your contract, you can navigate to the **File Explorer** tab and check that:
1. The **artifacts** folder is present.
2. The `Counter_metadata.json` and the `Counter.json` files have been generated.

![](/images/smart-contracts/dev-environments/remix/get-started/remix-3.gif)

## Where to Go Next

The Remix IDE offers an environment for developing, compiling, and deploying smart contracts on the Polkadot Hub. Its intuitive interface allows developers to easily write Solidity code, compile contracts, and interact with them directly in the browser.
Remix offers an environment for developing, compiling, and deploying smart contracts on Polkadot Hub. Its intuitive interface allows developers to easily write Solidity code, compile contracts, and interact with them directly in the browser.

Explore more about smart contracts through these resources:

Expand All @@ -101,7 +128,7 @@ Explore more about smart contracts through these resources:

---

Test your skills by deploying a simple contracts with prebuilt templates.
Test your skills by deploying simple contracts using prebuilt templates.

[:octicons-arrow-right-24: Get Started](https://www.openzeppelin.com/solidity-contracts){target=\_blank}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
---
title: Troubleshooting Remix IDE
description: Solutions to common issues when developing, compiling, and deploying smart contracts using Remix IDE on Polkadot Hub.
categories: Smart Contracts, Tooling
url: https://docs.polkadot.com/smart-contracts/dev-environments/remix/troubleshooting-faq/
---

# Remix IDE Troubleshooting

This guide provides solutions to common issues you may encounter when using Remix IDE with Polkadot Hub. If you're experiencing problems with compilation, deployment, or contract interaction, you'll likely find the solution here.

## Contract fails to compile or shows errors in the terminal

- **Check Solidity version compatibility**:
- Ensure your contract's pragma statement matches the compiler version selected in the **Solidity Compiler** tab.
- Example: If your contract uses `pragma solidity ^0.8.0;`, select compiler version 0.8.x or higher.

- **Review syntax errors**:
- Carefully read error messages in the terminal panel at the bottom of the screen.
- Common issues include missing semicolons, incorrect function visibility, or mismatched brackets.

- **Clear cache and recompile**:
- Delete the `artifacts` folder in the **File Explorer**.
- Try compiling again with `Ctrl+S` or click the **Compile** button.

## The `artifacts` folder doesn't appear after compilation

- Ensure compilation completed successfully without errors.
- Refresh the **File Explorer** by clicking away and back to the **File Explorer** tab.
- Check that your `.sol` file is saved before compiling.

## Remix doesn't detect your wallet extension (MetaMask, Talisman, etc.)

- **Verify wallet installation**:
- Ensure your wallet extension is properly installed and enabled in your browser.
- Check that the extension icon appears in your browser toolbar.

- **Refresh the page**:
- Reload the Remix IDE page and try reconnecting.

- **Check browser permissions**:
- Ensure Remix has permission to interact with the wallet extension.
- Check your browser's extension settings.

- **Use correct environment**:
- In the **Deploy & Run Transactions** tab, select **Browser Extension** from the **Environment** dropdown.
- Choose **Injected Provider - MetaMask** (works with most wallet providers).

## Wallet is connected but to the wrong network

1. Open your wallet extension.
2. Switch to the Polkadot Hub network.
3. Refresh the Remix IDE if the network change isn't detected automatically.
4. Verify the network name and chain ID match Polkadot Hub's configuration.

## Deployment fails with "insufficient funds" or similar error

- **Check your balance**:
- Verify you have enough test tokens in your connected wallet.
- Visit the [Polkadot faucet](/smart-contracts/faucet/){target=\_blank} to obtain test tokens.

- **Wait for faucet tokens**:
- Allow a few minutes for faucet transactions to complete.
- Refresh your wallet to see the updated balance.

## Deployment transaction is rejected or fails

- **Increase gas limit**:
- In the **Deploy & Run Transactions** tab, adjust the **Gas Limit** field.
- Try increasing it by 20-30% from the estimated amount.

- **Check contract constructor parameters**:
- Ensure any required constructor parameters are provided correctly.
- Verify parameter types match the contract's constructor signature.

- **Verify contract selection**:
- Ensure you've selected the correct contract from the **Contract** dropdown.
- If you have multiple contracts, make sure you're deploying the intended one.

## The "Injected Provider - MetaMask" option doesn't appear in the Environment dropdown

- Select **Browser Extension** from the **Environment** dropdown to populate the **Injected Provider - Metamask** option.
- Ensure your wallet extension is unlocked and active.
- Try disabling and re-enabling the wallet extension.
- Refresh the Remix IDE page.

## Wallet rejects transactions when trying to interact with deployed contracts

- **Check wallet unlock status**:
- Ensure your wallet is unlocked.
- Verify you're approving the transaction in the wallet pop-up.

- **Verify sufficient gas**:
- Ensure you have enough tokens to cover the transaction fee.
- The wallet pop-up should show the estimated gas cost.

- **Network mismatch**:
- Confirm your wallet is still connected to Polkadot Hub.
- Check that Remix is using the same network.

## Deployed contract doesn't show in the **Deployed/Unpinned Contracts** section

- Wait for the transaction to be confirmed on-chain.
- Check the Remix terminal for deployment confirmation.
- Scroll down in the **Deploy & Run Transactions** panel to find the deployed contracts section.
- If the deployment transaction failed, check the terminal for error messages.

## Blue buttons (read functions) don't display return values

- **Check the terminal**:
- Return values appear in the terminal panel at the bottom.
- Look for the decoded output section.

- **Verify contract state**:
- Ensure the contract has been properly initialized.
- Check if the function requires a specific contract state to return values.

- **Network connection**:
- Verify you're still connected to the correct network.
- Try refreshing the connection to your wallet.


## Orange/red buttons (write functions) execute, but the state doesn't change

- **Wait for transaction confirmation**:
- Transactions need to be mined before state changes are reflected.
- Check the terminal for transaction status.
- Wait a few seconds and try rereading the state.

- **Transaction failed**:
- Check if the transaction was actually successful in the terminal.
- Look for revert reasons or error messages.
- Verify you approved the transaction in your wallet.

- **Check transaction parameters**:
- Ensure you're passing the correct parameters to the function.
- For payable functions (red buttons), verify you're sending the correct amount.

## Remix takes a long time to load or becomes unresponsive

- **Clear browser cache**:
- Clear your browser's cache and cookies.
- Restart your browser.

- **Disable unnecessary plugins**:
- In Remix, deactivate plugins you're not using via the Plugin Manager.

- **Use a supported browser**:
- Use Chrome, Firefox, or Brave for the best compatibility.
- Ensure your browser is up to date.

## Changes to files or folders don't appear in the File Explorer

- Click the refresh icon in the **File Explorer**.
- Switch to a different tab and back to **File Explorer**.
- Save your work and reload the Remix IDE page.

## Where to Go Next

Continue improving your Remix IDE workflow with these resources:

<div class="grid cards" markdown>

- <span class="badge guide">Guide</span> __Get Started with Remix IDE__

---

Return to the basics and review the Remix IDE setup process.

[:octicons-arrow-right-24: Get Started](/smart-contracts/dev-environments/remix/get-started/)

- <span class="badge guide">Guide</span> __Deploy Smart Contracts__

---

Learn how to deploy and interact with smart contracts using Remix.

[:octicons-arrow-right-24: Get Started](/smart-contracts/dev-environments/remix/deploy-a-contract/)

</div>
Loading
Loading