Skip to content

Commit

Permalink
GITBOOK-503: replace SismoLib path with SismoConnectLib path for 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 67cadea commit b938806
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions build-with-sismo-connect/getting-started-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ 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
```
{% endtab %}

Expand Down Expand Up @@ -230,7 +230,7 @@ The Sismo Connect configuration and request used in your smart contract/backend
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "sismo-connect-solidity/SismoLib.sol";
import "sismo-connect-solidity/SismoConnectLib.sol";
// This is a sample contract that shows how to use the SismoConnect library
contract Airdrop is SismoConnect {
Expand Down
2 changes: 1 addition & 1 deletion build-with-sismo-connect/sismo-connect-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ import {
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "sismo-connect-solidity/SismoLib.sol";
import "sismo-connect-solidity/SismoConnectLib.sol";
contract MyContract is SismoConnect {
// reference your appId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const sismoConnect = SismoConnect({config});
In your smart contract, the most basic Sismo Connect Config looks like this:
```solidity
import "sismo-connect-solidity/SismoLib.sol"; // <--- add a Sismo Connect import
import "sismo-connect-solidity/SismoConnectLib.sol"; // <--- add a Sismo Connect import

contract MyContract is SismoConnect {
bytes16 public constant APP_ID = 0xf4977993e52606cfd67b7a1cde717069;
Expand Down Expand Up @@ -219,7 +219,7 @@ const sismoConnect = SismoConnect({config});
In your smart contract, the most basic Sismo Connect Config looks like this:
```solidity
import "sismo-connect-solidity/SismoLib.sol"; // <--- add a Sismo Connect import
import "sismo-connect-solidity/SismoConnectLib.sol"; // <--- add a Sismo Connect import

contract MyContract is SismoConnect {
bytes16 public constant APP_ID = 0xf4977993e52606cfd67b7a1cde717069;
Expand Down
4 changes: 2 additions & 2 deletions build-with-sismo-connect/tutorials/deploy-your-contracts.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Onchain Tutorial (2/2): Deploy Your Airdrop Contract
# Onchain Tutorial (2/2): Deploy Your Airdrop Contract

## Overview

Expand Down Expand Up @@ -74,7 +74,7 @@ export const sismoConnectConfig: SismoConnectConfig = {
```solidity
// in your contract
import "sismo-connect-solidity/SismoLib.sol";
import "sismo-connect-solidity/SismoConnectLib.sol";
contract A is SismoConnect {
// add your appId as a constant
Expand Down

0 comments on commit b938806

Please sign in to comment.