diff --git a/README.md b/README.md index f62e89a..8eda04d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/packages/form-XChange/.env.example b/packages/form-XChange/.env.example new file mode 100644 index 0000000..ec5b9e1 --- /dev/null +++ b/packages/form-XChange/.env.example @@ -0,0 +1,2 @@ +MNEMONIC="Your_12_word_Phrase__OR__Private_Key" +INFURA_API_KEY=abcdefg_Infura_Key__wxyz \ No newline at end of file diff --git a/packages/form-XChange/truffle-config.js b/packages/form-XChange/truffle-config.js index 63361cc..3e05cc0 100644 --- a/packages/form-XChange/truffle-config.js +++ b/packages/form-XChange/truffle-config.js @@ -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"); @@ -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, },