Skip to content

Commit

Permalink
Merge branch 'feat/addingGetingStarted' of github.com-work:rsksmart/d…
Browse files Browse the repository at this point in the history
…evportal into feat/addingGetingStarted
  • Loading branch information
SebasGuaquetaRSK committed Oct 10, 2024
2 parents b1b4a25 + af60de2 commit cf26f1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ description: "Learn how to deploy your Rootstock smart contract using forge."
tags: [guides, developers, smart contracts, rsk, rootstock, foundry, dApps]
---

In this section, you'll deploy `counter` smart contract to the Rootstock network using Foundry.
In this section, you'll deploy a `counter` smart contract to the Rootstock network using Foundry.

## Step 1: Deployment Script
You will see a directory called `deploy` in the root of your project. This is where you will see/write your deployment scripts. The demo `counter.sol` comes with a deployment script `counter.s.sol`, which contains:
You will see a directory called `deploy` in the root of your project. This is where you can view/write your deployment scripts. The demo `counter.sol` comes with a deployment script `counter.s.sol`, which contains:

```solidity
// SPDX-License-Identifier: UNLICENSED
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
sidebar_label: Test Smart Contract
sidebar_position: 104
title: Test Smart Contract
description: "Learn how to test your Rootstock smart contract"
title: Testing Smart Contracts using Foundry
description: "Learn how to test your Rootstock smart contract using Foundry"
tags: [guides, developers, smart contracts, rsk, rootstock, foundry, dApps, ethers]
---

In this section, you'll set up a smart contract test and test it using `forge`.

### Step 1: Test Script
You will see a directory called `test` in the root of your project. This is where you will see/write your tests. The demo `counter.sol` comes with a test script `counter.t.sol`, which contains:
You will see a directory called `test` in the root of your project. This is where you can view/write your tests. The demo `counter.sol` comes with a test script `counter.t.sol`, which contains:

```solidity
// SPDX-License-Identifier: UNLICENSED
Expand Down

0 comments on commit cf26f1a

Please sign in to comment.