smartcontractkit / functions-hardhat-starter-kit

MIT License
144 stars 103 forks source link

PRIVATE_KEY not needed for simulation #202

Closed aelmanaa closed 8 months ago

aelmanaa commented 8 months ago

Hi team,

ISSUE:

  1. In a terminal, clone the functions-hardhat-starter-kit repository and change to the functions-hardhat-starter-kit directory.

    git clone https://github.com/smartcontractkit/functions-hardhat-starter-kit && \
    cd functions-hardhat-starter-kit
  2. Run npm install to install the dependencies.

    npm install
  3. Run npx hardhat functions-simulate-script

    npx hardhat functions-simulate-script

    --> Error:

    Please set the encryption password by running: npx env-enc set-pw
    ...
    Set the PRIVATE_KEY environment variable with your EVM wallet private key

Problem:

Users shouldn't be required to provide a PRIVATE_KEY to simulate a request.