Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ Now head over to this path `apps/web/lib/contracts.ts/config.ts` and change the
If you wish to run Linea directly:

1. You need to change directory to `packages` after that go to to [form-XChange](https://github.com/ConsenSys/Form-XChange/tree/main/packages/form-XChange) directory.

2. In the `packages/form-XChange` directory setup your `.env`. You can take reference of `.env.example`.

Run the following command:

```sh
Expand Down
2 changes: 2 additions & 0 deletions packages/form-XChange/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MNEMONIC="Your_12_word_Phrase__OR__Private_Key"
INFURA_API_KEY=abcdefg_Infura_Key__wxyz
3 changes: 2 additions & 1 deletion packages/form-XChange/truffle-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require("dotenv").config();
const mnemonic = process.env["MNEMONIC"];
const infuraKey = process.env["INFURA_API_KEY"];

const HDWalletProvider = require("@truffle/hdwallet-provider");

Expand All @@ -13,7 +14,7 @@ module.exports = {
},
linea: {
provider: () =>
new HDWalletProvider(mnemonic, `https://rpc.goerli.linea.build`),
new HDWalletProvider(mnemonic, `https://linea-goerli.infura.io/v3/${infuraKey}`),
network_id: 59140,
chain_id: 59140,
},
Expand Down