Skip to content

Commit

Permalink
GITBOOK-502: feat: update Solidity Lib installation with foundry
Browse files Browse the repository at this point in the history
  • Loading branch information
yum0e authored and gitbook-bot committed Jul 18, 2023
1 parent 44a0f16 commit 67cadea
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The Sismo Connect Solidity Library allows to easily verify proofs from your user

This page will detail all the specifications of the Sismo Connect Solidity Library that is deployed on [**the following chains**](../../../how-sismo-works/resources/sismo-101.md).

You can find the Solidity Library GitHub repository [here](https://github.com/sismo-core/sismo-connect-packages/tree/main/packages/sismo-connect-solidity).
You can find the Solidity Library GitHub repository [**here**](https://github.com/sismo-core/sismo-connect-solidity).

## Usage

Expand All @@ -26,21 +26,21 @@ Install the Forge dependency:

```bash
foundryup
forge install sismo-core/sismo-connect-packages
forge install sismo-core/sismo-connect-solidity --no-commit
```

Add the remapping in remappings.txt:
Add the remapping in `remappings.txt`:

```bash
echo $'sismo-connect-solidity/=lib/sismo-connect-packages/packages/sismo-connect-solidity/src/' >> remappings.txt
echo $'sismo-connect-solidity/=lib/sismo-connect-solidity/src/' >> remappings.txt
```

#### Import the library

In your Solidity file:

```solidity
import "sismo-connect-solidity/SismoLib.sol";
import "sismo-connect-solidity/SismoConnectLib.sol";
```
{% endtab %}

Expand Down

0 comments on commit 67cadea

Please sign in to comment.