-
Notifications
You must be signed in to change notification settings - Fork 3
codegen: Error retrieving binary #422
Copy link
Copy link
Open
Description
To reproduce:
- use bump solc version #421 to install codegen, then:
cd packages/codegen
git clone https://github.com/collectif-dao/liquid-staking.git
using this example.config.yaml:
contracts:
# Contract name:
- name: RewardCollector
# Contract file path or an url:
path: ./liquid-staking/contracts/RewardCollector.sol
# Contract kind (should match name of dataSource in {subgraphPath}/subgraph.yaml if subgraphPath provided)
#kind: Example1
# Output folder path (logs output using `stdout` if not provided).
outputFolder: ../coll/reward-collector
# Code generation mode [eth_call | storage | all | none] (default: none).
mode: none
# Kind of watcher [lazy | active] (default: active).
kind: lazy
# Watcher server port (default: 3008).
port: 3008
# Solc version to use (optional)
# If not defined, uses solc version listed in dependencies
solc: v0.8.21+commit.d9974be
# Flatten the input contract file(s) [true | false] (default: true).
flatten: true
# Path to the subgraph build (optional).
# Can set empty contracts array when using subgraphPath.
# subgraphPath: ../graph-node/test/subgraph/example1/build
# NOTE: When passed an *URL* as contract path, it is assumed that it points to an already flattened contract file.
The error:
# yarn codegen -c example.config.yaml
yarn run v1.22.19
$ ts-node src/generate-code.ts -c example.config.yaml
Error: Error retrieving binary: Not Found
at RedirectableRequest.<anonymous> (/root/watcher-ts/node_modules/solc/wrapper.js:337:24)
at RedirectableRequest.emit (node:events:514:28)
at RedirectableRequest.emit (node:domain:489:12)
at RedirectableRequest._processResponse (/root/watcher-ts/node_modules/follow-redirects/index.js:356:10)
at ClientRequest.RedirectableRequest._onNativeResponse (/root/watcher-ts/node_modules/follow-redirects/index.js:62:10)
at Object.onceWrapper (node:events:629:26)
at ClientRequest.emit (node:events:514:28)
at ClientRequest.emit (node:domain:489:12)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:693:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
Done in 628.25s.
same error for any contract
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels