# Compiling the contract

**Compile smart contract**

1. Switch to the Compiler tab
2. Select compiler version
3. Now, compile HelloWorld.sol
4. After successful compilation, it will show a green tick mark on the Compiler tab button

**Deploy Smart Contract**

In both Testnet and Mainnet, you do the below to deploy your smart contract using Remix.

1. Navigate to the Deployment tab
2. Select Injected Provider Metamask in the Environment dropdown, and your contract
3. Accept the Connect request received in MetaMask. You can also manually launch MetaMask if the popup doesn't open by default.
4. In MetaMask, once a transaction is deployed, you will receive another MetaMask pop-up that requires you to confirm the transaction. You just need to confirm the transaction.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bahamut.io/building-on-bahamut/deploy-smart-contracts/using-remix/compiling-the-contract.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
