forge-jig icon indicating copy to clipboard operation
forge-jig copied to clipboard

bug: no check for foundry.toml results in 'call stack size exceeded'

Open sambacha opened this issue 2 years ago • 3 comments

without a foundry.toml in root the follow error is outputed:

RangeError: Maximum call stack size exceeded
    at Object.existsSync (node:fs:300:20)

yes I know it says in the README you need one, but it should check b4 cont. processes

$ jig make contracts/Wallet.sol
jig make <pattern> [options]

generate a jig for solidity contract

Positionals:
  pattern                                                    [string] [required]

Options:
      --version  Show version number                                   [boolean]
  -h, --help     Show help                                             [boolean]

RangeError: Maximum call stack size exceeded
    at Object.existsSync (node:fs:300:20)
    at findNearest (/Users/sbacha/.nvm/versions/node/v18.12.1/lib/node_modules/@forge-jig/cli/node_modules/@forge-jig/foundry/dist/src/findNearest.js:48:12)

sambacha avatar Dec 23 '22 15:12 sambacha

Fair point! Will do. I'm curious are you using this for a side-project or at manifold?

Bind avatar Dec 23 '22 16:12 Bind

Fair point! Will do. I'm curious are you using this for a side-project or at manifold?

We are evaluating it, why? You interested in doing some paid work?

sambacha avatar Dec 28 '22 15:12 sambacha

We are evaluating it, why? You interested in doing some paid work?

Awesome to hear! Don't think paid work is in the cards right now, most weeks I'm very focused on Stelo but going to do a some refactoring while on break. If you bump into any more rough edges, please do let me know!

Bind avatar Dec 29 '22 14:12 Bind